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

Ensure when logging in via OIDC when there's an existing non-OIDC account that there is an onboarding flow to merge these accounts #122

Open
alextreme opened this issue Nov 15, 2024 · 0 comments
Assignees

Comments

@alextreme
Copy link
Member

alextreme commented Nov 15, 2024

As you've noticed, when logging in via OIDC this can clash with an existing User account (same sub/username/emailadres)

See if you can make this transition smoother by providing a one-time 'onboarding' process where the existing user account is reused for OIDC authentication. It would make sense to ask the user for their existing password to double-check that the user indeed is the same person before merging

The merging could be done both ways, @sjoerdie recommends keeping the existing User intact:

You can rename the existing username in django to the new “keycloak” username, we usually do that at openforms to keep audit logging etc. for users. It is just annoying because users have to log in once via keycloak because the account is only created then and you only then have the username. Or you have to make the username claim a predictable username (e.g. email)

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

2 participants