azure-ad-b2c / samples

Azure AD B2C custom policy solutions and samples.
846 stars 598 forks source link

Multiple providers support at signup #594

Closed cbou closed 11 months ago

cbou commented 11 months ago

I tried and extended the samples account-linkage and account-linkage-unified but I can't achieve what I would like to. Let's say I have a facebook account registered with the email sample@example.com. If I first create a account on B2C using this address sample@example.com (without social idp) and later try to login with Facebook, I will end having two account created on B2C.

How can I prevent creating duplicate account without having to actually link them explicitly using the link buttons?

Once I have an account with sample@example.com and I try to login with facebook for the first time, this account should be detected and the facebook idp attached to this account.

cbou commented 11 months ago

I found out the sample I was needed: https://github.com/azure-ad-b2c/samples/tree/master/policies/auto-account-linking