Skip to main content

Notifications

Power Pages - General Discussions
Answered

Azure ADB2C - "Provide an email address to complete the external account registration".

(0) ShareShare
ReportReport
Posted on by 66

Hi, we have contact records with email address in it. However, when a user trying to login using their existing B2C credentials (created as part of some other LOB application's registration), I was expecting the Portal to automatically try and associate the user identity with the existing contact record. However, strangely the portal is showing a screen like this.. 

SAlluri_0-1709728604256.png

and when the user gives the email address, portal is actually creating a new contact record instead of associating with existing. Does any one observed this behaviour previously? Any thoughts?

 

The only difference I see in the B2C claims bag is - the email address is coming under "otherMails" node as it is a custom policy implemented by Client, where as the standard B2C claims bag it is coming under "emails" node. Could that be the difference?

Custom Policy: 

SAlluri_1-1709728915346.png

OOB policy:

SAlluri_2-1709728973702.png

 

I have tried to include these as additional registration/login claims but no luck 😞

 

Thank you

-Srikanth

 

 

Categories:
  • SAlluri Profile Picture
    SAlluri 66 on at
    Re: Azure ADB2C - "Provide an email address to complete the external account registration".

    Ahhh.. Brill, spot on.. Thanks for the link @OOlashyn . Great help !!

     

    -Srikanth

  • Verified answer
    OOlashyn Profile Picture
    OOlashyn 3,496 on at
    Re: Azure ADB2C - "Provide an email address to complete the external account registration".

    Hi @SAlluri ,

    Yes, the issue is that the portal cannot find the email claim (Power Pages expect to see it in one of the three claims - see here https://learn.microsoft.com/en-us/power-pages/security/authentication/openid-faqs#does-power-pages-require-a-specific-claim-in-an-id-token). Make sure that you configure your custom policy to return email in one of those claims.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard