Delegated access token without client secret

captain_atharv 511 Reputation points
2022-11-11T07:52:55.397+00:00

Hi,

I have registered an app in Azure and using same to generate delegated access token. I would like to know is there a way to generate same without client secret?
As user will sign in and approve the request, I don't understand the purpose of client secret here.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,569 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 36,891 Reputation points
    2022-11-11T08:34:03.273+00:00

    Hi @captain_atharv

    This depends on whether your app is a confidential client or a public client, client_secret parameters are required for confidential web apps, and if you want to generate a delegated access token without client_secret parameters, you need to enable public client flows for your app.

    259386-page15.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful