Can we ask the developer to provide clientId and secret for Oauth2 client credentials at the time of the API call

kartik mittal 1 Reputation point

we want to give access to the client IDs and secrets at the time of the API call which will be added by the end-user for the oauth2 client credentials call.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,745 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Aisha Ikram 131 Reputation points

    Yes for OAuth Client Credential Grant which is setup for that API, you would need client id and secret to get Token from Authorization Server (AD) which will be passed for that API to work

    0 comments No comments

  2. JananiRamesh-MSFT 20,996 Reputation points

    Hi @kartik mittal Thanks for reaching out. From the description I understand that you wanted to give access to client id and client secret at the time of API call. No this is not possible by using client id and secret you would be able to fetch the token using client credential flow and the token will be passed as a header while calling an API.

    Please let me know incase of further queries, I would be happy to assist you.

    0 comments No comments