Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect existing user with external idp #76

Open
nataliahering opened this issue Apr 6, 2021 · 0 comments
Open

Connect existing user with external idp #76

nataliahering opened this issue Apr 6, 2021 · 0 comments

Comments

@nataliahering
Copy link

nataliahering commented Apr 6, 2021

I can see that if user eg. [email protected] has signed up with local sign up, one user will be created in B2C. If then this user signs up with his google social using the same email, another user will be created. Same vice versa. And this is of course expected to happen like that.

How cun I run a custom policy, after the user has entered his email(in case of local sign up) or after google has returned the token(in case of social sign up), see if a user already exists with that email and if yes link the user to the same user id instead of creating a new one?
If this is not possible, what I would like instead is to provide a "link"/"connect" functionality to the user, while he is signed in with the one or the other way.
For example: User signs in the SPA with username, password [email protected] -> clicks the "link account" button -> chooses to connect some social -> signs in the social idp -> social profile is connected to initial user. After sign out the user can either sign in with social or with local. Either way it will result to the same profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant