8000 What is the recommended way to verify a user's brokered identity during step-up authentication? · keycloak keycloak · Discussion #52939 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

Use an explicit federated-identity link, not profile-field comparison. Link the external account to the Keycloak user first (Account Console or client-initiated account linking). Keycloak then resolves the provider alias plus external subject to that local user.

When authentication finishes into an existing session, Keycloak compares the newly authenticated user with the session user and rejects a mismatch with DIFFERENT_USER_AUTHENTICATED. Therefore:

  • require the broker identity to be pre-linked;
  • force the intended IdP for the step-up;
  • do not auto-link by email/profile claims during this flow;
  • if no link exists, fail and send the user through deliberate account linking first.

For any ex…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mikeastrea
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