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

[1/2]fix: Link existing users to identity providers on user exists error #640

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

sashko9807
Copy link
Member

Whenever someone attempts to sign in through OAuth, keycloak automatically attempts to create a new user with the given user data returned from the provider. This behavior results in a conflict, in cases user had already been registered prior to Oauth2 Signin attempt.

Resolve this issue, by linking the existing user to the federated identity, whenever keycloak responds with an error "User already exists".

Whenever someone attempts to sign in through OAuth, keycloak automatically attempts to create a new user with the given user data returned from the provider.
This behavior results in a conflict, in cases user had already been registered prior to Oauth2 Signin attempt.

Resolve this issue, by linking the existing user to the federated identity, whenever keycloak responds with an error User already exists.
Copy link

github-actions bot commented Jun 8, 2024

✅ Tests will run for this PR. Once they succeed it can be merged.

@sashko9807 sashko9807 added the run tests Allows running the tests workflows for forked repos label Jun 8, 2024
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Jun 8, 2024
@sashko9807 sashko9807 requested a review from slavcho June 9, 2024 13:34
@slavcho slavcho merged commit d0e5725 into podkrepi-bg:master Jul 17, 2024
10 of 11 checks passed
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

Successfully merging this pull request may close these issues.

3 participants