Home

Regarding OpenID Integration of Azure AD B2C

%3CLINGO-SUB%20id%3D%22lingo-sub-882380%22%20slang%3D%22en-US%22%3ERegarding%20OpenID%20Integration%20of%20Azure%20AD%20B2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-882380%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20created%20an%20b2c%20application%20and%20for%20which%20I%20have%20done%20open%20id%20connect%20configuration%20but%20when%20I'm%20authenticating%20user%20in%20that%20application%20I'm%20getting%20an%20null%20email%20address%20from%20azure%20for%20that%20user.%20I'm%20getting%20firstname%2Clastname%20of%20that%20user%20for%20thaat%20azure%20b2c%20application%20but%20I%20want%20email%20address%20as%20well%20of%20the%20user%20in%20response%20for%20authenticating%20him%20in%20my%20application.Can%20anyone%20please%20look%20into%20that%20and%20acknowledge%20me%20ASAP.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-882380%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-910843%22%20slang%3D%22en-US%22%3ERe%3A%20Regarding%20OpenID%20Integration%20of%20Azure%20AD%20B2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-910843%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F417375%22%20target%3D%22_blank%22%3E%40rasheshved%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20information%20that%20AzureAD%20B2C%20passes%20to%20your%20application%20is%20stored%20in%20the%20claims%20token%20reply.%20The%20AzureAD%20B2C%20policies%20control%20what%20information%20is%20written%20to%20the%20claim.%20The%20update%20or%20check%20your%20claim%2C%20open%20the%20policy%20and%20verify%20that%20email%20addresses%20are%20selected.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EIn%20your%20Azure%20AD%20B2C%20tenant%2C%20select%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EUser%20flows%3C%2FSTRONG%3E.%3C%2FLI%3E%3CLI%3ESelect%20your%20policy%20which%20you%20used%20for%20the%20application%2C%20to%20open%20it.%3C%2FLI%3E%3CLI%3ESelect%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EApplication%20claims%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20then%20select%20the%20%3CSTRONG%3EEmail%20Address%3C%2FSTRONG%3E%20attribute.%3C%2FLI%3E%3CLI%3EClick%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESave%3C%2FSTRONG%3E.%3C%2FLI%3E%3C%2FOL%3E%3CP%3EThe%20claims%20token%20return%20should%20include%20a%20collection%20for%20the%20user's%20email%20address.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
rasheshved
Occasional Visitor

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.

 

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies