Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

KeyCloak login issue: user already exists #68

Closed
ShellyXueHan opened this issue Mar 19, 2020 · 3 comments
Closed

KeyCloak login issue: user already exists #68

ShellyXueHan opened this issue Mar 19, 2020 · 3 comments
Labels
FAQ Frequently asked questions, keeping for record until docs created. sso Tag for all issues and work items associated with the SSO Team

Comments

@ShellyXueHan
Copy link
Contributor

ShellyXueHan commented Mar 19, 2020

Background:

After login with the identity provider, user sees a KeyCloak page with a message User with <email/username> already exists. How do you want to continue? from the application realm

Reference:

Screen Shot 2020-03-19 at 2 20 33 PM

Steps to debug duplicated email:

  • fist of all, try to clear cache and reopen browser to test a clean start
  • check with realm admin on the login settings: Realm Settings -> Login tab -> Login with email If this field is set to true, no new accounts with duplicate email address can be created.
  • check if any user account in the realm has the same email address as your currently account. This usually happens between two accounts from the same person (e.g.: IDIR and BCeID with the same email), or different accounts with empty email attributes.
  • If that's the case, either enable Duplicate email setting, or update one of the accounts with another email address

Steps to debug duplicated username:

  • fist of all, try to clear cache and reopen browser to test a clean start
  • have you recently updated your IDIR/BCeID account? If so, please request for a KeyCloak user update at: https://github.com/BCDevOps/devops-requests
  • if above does not apply, please contact RocketChat channel sso
@ShellyXueHan ShellyXueHan added the FAQ Frequently asked questions, keeping for record until docs created. label Mar 24, 2020
@garywong-bc
Copy link

NOTE I now see a Configure -> Realm Settings -> Cache option that MDS could've tried prior to deleting the 2nd account (with the same email). The 1st account did NOT show up in the list of users but may have been in the cache. In the future, if this happens again we should try clearing the cache before making any config changes.

@aaabramov
Copy link

NOTE I now see a Configure -> Realm Settings -> Cache option that MDS could've tried prior to deleting the 2nd account (with the same email). The 1st account did NOT show up in the list of users but may have been in the cache. In the future, if this happens again we should try clearing the cache before making any config changes.

You saved me hours of investigation.. I was getting 409 for deleted user )

@zsamji
Copy link

zsamji commented Jan 5, 2022

closing as it is captured bcgov/sso-keycloak#70

@zsamji zsamji closed this as completed Jan 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FAQ Frequently asked questions, keeping for record until docs created. sso Tag for all issues and work items associated with the SSO Team
Projects
None yet
Development

No branches or pull requests

5 participants