How do I get the logged in users profile for Azure AD OAuth logins?

前端 未结 2 1719
一生所求
一生所求 2021-01-22 02:18

Following on from JavaScript OAuth2 flow for Azure AD v2 login does not give an access_token, I\'m trying to figure out the best endpoint to use, to get the logged in users deta

2条回答
  •  隐瞒了意图╮
    2021-01-22 02:41

    The ID Token and Access Token can return attributes like display name, email, etc.

    Sample ID Token.

    See "Select Application claims" here: Azure Active Directory B2C: Built-in policies

    Select Application claims. Choose claims you want returned in the authorization tokens sent back to your application after a successful sign-up or sign-in experience. For example, select Display Name, Identity Provider, Postal Code, User is new and User's Object ID.

提交回复
热议问题