8000 Problem: IdP account linking stuck with no error when the existing local account is disabled · keycloak keycloak · Discussion #51046 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

Refusing to link a disabled account is intended, but in the default First Broker Login flow it fails without telling the user. The logic is the same in 26.4.2 and 26.8:

  1. "Verify Existing Account by Email" and "Verify Existing Account by Re-authentication" are two ALTERNATIVE executions inside "Account verification options".
  2. IdpEmailVerificationAuthenticator calls AbstractIdpAuthenticator.getExistingUser(), which throws an AuthenticationFlowException with USER_DISABLED for a disabled account. That happens before any mail is sent.
  3. DefaultAuthenticationFlow catches exceptions thrown by ALTERNATIVE executions, marks the execution as attempted and moves on to the next alternative.
  4. IdpUsernameP…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zuhairhalawa
Comment options

Answer selected by CoIlg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0