Connect social account to existing signed up user (B2C)

NHering22101 106 Reputation points
2021-04-05T10:40:08.21+00:00

I have been using in B2C a user flow, in which the user can sign up either by using local sign up (email & password) or social (eg. gmail). When I run the following scenario

  1. Open app and sign up with email-password, using myemail@something .com
  2. In B2C I can see the myemail@something .com created
  3. Open app and sign up with social (eg. gmail account myemail@something .com)
  4. In B2C I can see another user created, with this gmail account.

However, what I want is to be able to connect these 2 accounts. In other words, whenever a user signs up with a social, I want to hook up a logic to see whether a user with this email already exists and connect it. As an extension to this scenario, I want to have a "connect" option once the user is signed in the app (eg. when user signed in with the local account, I want to be able to make a custom call to B2C to connect a new social account to a specific user).

Is this possible?

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
911 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,634 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,380 questions
{count} votes

1 answer

Sort by: Most helpful
  1. NHering22101 106 Reputation points
    2021-04-09T12:37:53.217+00:00

    @James Hamil any update on this? Thanks

    1 person found this answer helpful.