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.
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.
In your Azure AD B2C tenant, selectUser flows.
Select your policy which you used for the application, to open it.
SelectApplication claimsand then select the Email Address attribute.
The claims token return should include a collection for the user's email address.