Regarding OpenID Integration of Azure AD B2C

Copper Contributor

I've created an b2c application and for which I have done open id connect configuration but when I'm authenticating user in that application I'm getting an null email address from azure for that user. I'm getting firstname,lastname of that user for thaat azure b2c application but I want email address as well of the user in response for authenticating him in my application.Can anyone please look into that and acknowledge me ASAP.

1 Reply

@rasheshved 

 

The information that AzureAD B2C passes to your application is stored in the claims token reply. The AzureAD B2C policies control what information is written to the claim. The update or check your claim, open the policy and verify that email addresses are selected.

 

  1. In your Azure AD B2C tenant, select User flows.
  2. Select your policy which you used for the application, to open it.
  3. Select Application claims and then select the Email Address attribute.
  4. Click Save.

The claims token return should include a collection for the user's email address.