Skip to main content

Notifications

Power Pages - General Discussions
Answered

Azure AD B2C authentication

Posted on by 6

My Power Pages Sites uses Azure AD B2C for authentication. I would like to know how a B2C identity matches a Dynamics Contact. I found a very good blog: https://community.dynamics.com/blogs/post/?postid=1dd4444c-2602-4600-b34e-736b2be52b75. It said the matching is between the email claim in the B2C token and the email in the contact's "primary email address" field.

First, I cannot find the "primary email address" field of the contact. Would it be emailaddress1 instead? I deliberately changed the emailaddress1 to something else, yet I can still sign in with the same B2C identity.

Categories:
  • Verified answer
    Fubar Profile Picture
    Fubar 7,373 on at
    Azure AD B2C authentication
    'Primary email address' would be emailaddress1, however once the Contact record is associated with an External Identity Provider (such as B2C) the link between the Identity Provider and the Contact record is the identifier from the Identity Provider (in the case of B2C this is the guid of the B2C user) this linkage is stored in the External Identity table which is linked to the Contact (it is not the email address of the Contact). 
    Note: (except for local authentication) you are not really logging in to Power Pages, you are logging into the Identity Provider, and Power Pages is trusting that Identity Provider.
     
    Where this is being described in the article is primarily about moving a Contact that was setup using Local Authentication and then moving to B2C (but part would also apply to where you have an existing Contact created and no authentication setup).
     
    Where you are referring to in the article you linked to unfortunately is not 100% clear on what they are doing.  The scenario in the article is relating to having an existing Contact and having it map to the B2C when the users B2C is originally setup - this is also not the default behavior and requires a setting on the identity provider setup in Power Pages see "contact mapping with email"
     

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,719

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard

Featured topics