Azure Ad b2c: Get email in Claims after successfully Signin in azure ad b2c

后端 未结 2 1708
盖世英雄少女心
盖世英雄少女心 2021-01-06 02:04

I am using starter pack of custom polices with SocialAndLocalAccounts pack.

It is working fine for me.

But I am facing one issue.I need to

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-06 02:52

    For Chris Padgett's answer, you can add other emails (Alternate email) into the claim.

    If you just want to add email claim from the SignIn name into the token, you can just take following steps:

    1. Open your SignUporSignIn.xml file

    2. Replace with

    3. Save this SignUporSignIn.xml file and upload it to Azure AD B2C to overwrite the policy.

    4. Run the SignUporSignIn policy to test it. Here is my test result, you can see the email claim in the token:

    Hope this helps.

提交回复
热议问题