Questions tagged [clientcredential]

90 questions
1
vote
1 answer

Microsoft Identity Web : Azure AD Client Credential flow with Certificate Based Authentication

I am connecting to Graph API with Microsoft Identity Web (MSAL) library. [https://github.com/AzureAD/microsoft-identity-web][1] For this I am using client credentials flow with certificate based authentication. My configurations are below Service…
1
vote
0 answers

PKCE error while calling okta token URL from Swagger for ClientCredential Flow

Created a Swagger UI for APIs and wanted to expose the APIs using this Swagger(Means the app doesn't have any other UI set up other than this Swagger). Swagger has been configured for OAuth2 ClientCredential flow and it's token url is…
roby.elan
  • 134
  • 1
  • 10
1
vote
0 answers

Handle JWT expiration in SolrJ client side

Currently I am setting the JWT token(client_credentials) in the header while creating the connection to solr in java. The token is expiring in 15 mins and need to recreate the connection changing the header. Is there a better way to refresh the solr…
Chelam
  • 11
  • 1
1
vote
0 answers

Correct configuration for swashbuckle for IdentityServer4 ClientCredentials on CORE 3.1 visual studio 2019

I have an API I need to make authorized (Using attribute [Authorize]) Identity server 4 configured using generated DB including tables Clients, Scope, ClientScope, Client Secrets. I have client InternalClient with secret InternalClientSecret which…
1
vote
1 answer

How can I create a client_credential account in to be able to perform administrative tasks?

I'm trying to achieve the same exact thing of this user but using a client with client_credentials I've followed this post to create my client with client credentials grant and so I can get the access token like this but when I try to call the…
Doc
  • 5,078
  • 6
  • 52
  • 88
1
vote
2 answers

Role based access using identity server 4 and client credentials grant type

I'm just starting out with Identity Server 4. I'm trying to protect an API using the Client Credentials grant type. I have an API setup within IS4: public static IEnumerable Apis => new List { …
1
vote
2 answers

Passport - Create client credentials grant client programmatically

The documentation Here suggests php artisan passport:client --client for creating a client, but I want to do it using a controller, or ideally, using the native JSON apis provided by passport. Is that possible at all or will I have to override the…
1
vote
0 answers

Microsoft graph - NodeJS/ExpressJS - Client Credentials - Getting error when trying to use the access token i obtained

After following the instruction from the question given in How to get Microsoft Graph API Access token from Node Script? I am using React with node/express for this and i am following a tutorial from https://jscomplete.com/learn/1rd-reactful my…
1
vote
1 answer

Where can I find "authenticationKey" value in azure application for creating "ClientCredential" object

I would like to transfer data from Azure Blob to Azure SQL Database using Azure Data Factory. I found this link : Copy data from Azure Blob to Azure SQL Database using Azure Data Factory EDIT : I need to connect to my Azure Subscription to create…
Ardalan Shahgholi
  • 11,967
  • 21
  • 108
  • 144
0
votes
0 answers

OAUTH2 azuread authentication via UseOAuthBearerAuthentication

I have working middleware using deprecated Azure AD authentication. It looks like this. app.UseWindowsAzureActiveDirectoryBearerAuthentication( new WindowsAzureActiveDirectoryBearerAuthenticationOptions { Tenant =…
SeanK
  • 15
  • 1
  • 3
0
votes
1 answer

How can I authenticate a user without using the password grant_type in an OAuth flow?

As I read OAuth 2.0 recommends against using the password grant type and it is being removed in the OAuth 2.1 update. But what is the proper solution then when you have a machine-to-machine communication channel? In my case I have a couple of…
Jules
  • 7,148
  • 6
  • 26
  • 50
0
votes
0 answers

Express Gateway OAutn2 client_credentials flow sends incorrect value in expires_in

Express Gateway app created with no scopes Requested access token via api /oauth2/token Request as follows: curl --location 'http://localhost:9080/oauth2/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode…
user1306828
  • 715
  • 7
  • 14
0
votes
0 answers

How to securely call Microservice with client credential flow from headless nextjs

With asp.net MVC the FE calls the server side mvc api via Ajax. Server side MVC logic then gets bearer access jwt from STS using client credentials. It then securely calls Microservice by passing bearer token. How do we achieve the same with nextjs…
Nil Pun
  • 17,035
  • 39
  • 172
  • 294
0
votes
0 answers

Unable to get token using oauth2 package to get the client credential grant access token in Flutter web

I want to get access token from client credential grant. I tried this from the postman and ThunderClient where response threw with access token but when I tried using oauth or dio package it failed. It is only failing is flutter web. I am using…
0
votes
1 answer

Using OAuth client credentials to request access-token for user's resources

Our service uses OAuth to issue refresh-tokens that 3rd-party applications can later use to access users' resources without the presence of the user (server to server). We currently use Authorization Code flow and require the apps' developers to…
danbars
  • 300
  • 1
  • 3
  • 14