Isn't an access token used to authorize the UserInfo endpoint of Azure AD B2C?

opqrshun 95 Reputation points
2023-06-10T13:02:43.52+00:00

Hello,

I thought an access token is required to authorize the Userinfo endpoint, but is it an ID token instead of an access token?

When I tried it, authorization failed with the access token, but authorized with the ID token.

In the "Test the policy" chapter it states:

https://learn.microsoft.com/en-us/azure/active-directory-b2c/userinfo-endpoint?pivots=b2c-custom-policy#test-the-policy

Copy the id_token in its encoded format from the https://jwt.ms website.

But the HTTP request written just below it is shown as an access token

Authorization: Bearer <your access token>


For my use case, I have an OIDC client with a fixed OIDC flow. For example, OIDC authentication for AWS ALB.

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,695 questions
{count} votes