Questions tagged [clientcredential]

90 questions
0
votes
1 answer

Automatic token fetching with OAuth2 client_credentials flow with Python Requests

I want to use an API that is authenticated with the OAuth2 client_credentials flow from Python. In pyhton the most widely used HTTP client is Requests, and Requests has many advanced features and extensions, some of which revolve around using it…
0
votes
1 answer

Decoding azure access token obtained by client credential flow

Got access token using azure.identity ClientSecretCredential client credential flow but when trying to decode using the PyJwt library giving me the below error. ValueError: Could not deserialize key data. The data may be in an incorrect format or…
m9m9m
  • 1,655
  • 3
  • 21
  • 41
0
votes
0 answers

Add a body for parameters to a OAuth2AuthorizeRequest in a Spring-Boot app

I'm currently implementing a simple spring-boot backend that pulls data from different services. One of those services requires authentication through client credentials. For some reason, some of the data I need to access also requires additional…
speciial
  • 1
  • 1
0
votes
1 answer

Oauth2 Public Client with client credentials

I have some native desktop apps that needs to authenticate as clients with an Authorization Server implementing OAuth2 and OIDC. Since I do not have to impersonate an user on my Authorization Server I've chosen "Client Credentials" as the flow to…
bertonc96
  • 772
  • 2
  • 13
  • 24
0
votes
1 answer

spring authorization server oauth2 client credentials flow (fail to get token)

Trying to setup a authorization sever with spring authorization server and test with postaman, but keep responding 401, attahced my postaman input in image and console error in image Mainly…
J L
  • 67
  • 2
  • 8
0
votes
1 answer

Connect to OneDrive using Microsoft Graph and C# not working

I was trying to create a very simple app to connect to my OneDrive and receive a list of the various files that I have hosted on OneDrive. This is the code: string clientId = "My client Id"; string clientSecret = "The secret id value"; string…
0
votes
1 answer

How to add custom claim to a token in Duende under Client Credential flow?

Currently, I'm using a working Client Credential Flow. I'd like to extend the behavior of the IDP and add a claim besides the ones distributed automatically based on the client. Checking the docs for Client Credential Flow, didn't give me much. What…
0
votes
0 answers

ClientCredential flow with SwaggerUI give cors error

I need to authenticate Swagger UI against Azure Identity Provider. I need to implement a ClientCredential flow. The authentication works if I use Postman, so the Azure Identity Provider is well configured! Here the code I am using to authenticate…
Simone
  • 2,304
  • 6
  • 30
  • 79
0
votes
0 answers

how disable federation on client_credential flow inside spring federated authorization server?

i used this code from https://github.com/spring-projects/spring-authorization-server/tree/main/samples/federated-identity-authorizationserver and i could successfully connect it to microsoft azure b2c. i have one spring cloud gateway which is…
0
votes
0 answers

copying from Azure Data Factory to SharePoint

I have a REST call (Web Activity) in the Azure data factory that returns the JSON list. Now, I need to Post that List to the share point site. So when I go this URL in the…
0
votes
1 answer

How to configure access_token's lifetime in client_credentials flow? Azure AD B2C

we need to change the default lifetime of ours access_tokens. The default time is 1 hour and we need to change to 15 minutes by a Security Area request. We have an Azure AD B2C tenant, where we created App Registrations for our Daemon Apps and Web…
0
votes
1 answer

How do I get an access token for Microsoft Graph -- Azure docs are incorrect

I'm trying to get an access token using the OAuth 2.0 client credentials grant flow following Step 4. Here's my curl curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d…
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
0
votes
0 answers

Change client credentials of a client app after initial load in identityserver4

We are using identityserver4 for single-sign on and to protect our api resources. We have a scenarios where we are exposing our API endpoint to external apps using Client Credential mechanism. Now the business ask is to not share the client-secret…
0
votes
1 answer

I need to configure both Client Credential and Authorization grant type in single oAuth 2.0 token provider. this is in Azure and .NET core API

i am trying to have both grant-type in oAuth 2.0. because i need to setup some of my API methods need use client credentials since those are used in service to service connection and for some others i need to setup Authorization grant-type since it…
0
votes
0 answers

How do i force audience validation for a client credential flow bearer token validation in identity server 4

I've protected a resource api with client credential flow bearer in IDS4. I can specify audience and if it does not match the name in the apiresource defined in IDS4 the token fails to validate as expected. Snippet from IDS4 public static…
SeanK
  • 15
  • 1
  • 3