Azure B2C authorize check via ajax

Manuel Heye 1 Reputation point


How is it possible to make an authorize check to [ via ajax to verify if a customer has an active session on azure AD, i only need to retrieve the azure oid from the token.

Now i redirect the user to [ but i want to get rid of that.

Greetings Manuel

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,675 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 25,391 Reputation points Microsoft Employee

    Hi @Manuel Heye ,

    Thanks for reaching out.

    I understand you are trying to get the Azure AD B2C token to retrieve oid.

    Unfortunately, it is not possible to authenticate the user without required parameters. These parameters specify what type of token is being requested to use by proper audience.

    To get the token, you need to call authorize endpoint with the required parameters which will provide you authorize code to redeem the token from the /token endpoint.



    Reference: [

    Please remember to "Accept Answer" if answer helped you.