How to get an access token using b2clogin.com instead of using login.microsoftonline.com without user authentication?

Wataru Umeda 21 Reputation points
2020-06-09T01:04:31.33+00:00

I use Microsoft Graph API to manage Azure AD B2C users.

In order to get access without user authentication, I use the following API to get an access token.

https://login.microsoftonline.com/<my-tenant-id>/oauth2/v2.0/token
grant_type=client_credentials
scope=https://graph.microsoft.com/.default
client_id=<my-client-id>
client_secret=<my-client-secret>

I found that login.microsoftonline.com was deprecated as described in the article below.

https://azure.microsoft.com/en-us/updates/b2c-deprecate-msol/

I should use b2clogin.com, but I still use login.microsoftonline.com.
I couldn't find any documentation on how to get an access token using b2clogin.com instead of using login.microsoftonline.com without user authentication.

Where is the documentation?

Or can I use login.microsoftonline.com to get an access token without user authentication?

Thank you.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,682 questions
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,336 Reputation points
    2020-06-09T09:10:13.303+00:00

    Hi @WataruUmeda-8571,

    I see that you are using client_credentials flow. This flow is not yet supported with b2clogin.com.

    You can vote for it and view the status here: https://feedback.azure.com/forums/169401-azure-active-directory/suggestions/18431254-b2c-support-for-client-credential-flow.


    Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.


0 additional answers

Sort by: Most helpful