You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IdpDetectExistingBrokerUserAuthenticator misses cross-browser account-link verification handling implemented in IdpCreateUserIfUniqueAuthenticator #52604
The fix from #37559 ( https://github.com/keycloak/keycloak/pull/39132/changes ) added special handling in IdpCreateUserIfUniqueAuthenticator for the case where a user clicks the account-link verification email in another browser or another session.
However, the same handling does not seem to exist in IdpDetectExistingBrokerUserAuthenticator.
As a result, cross-browser verification works when the first broker login flow uses IdpCreateUserIfUniqueAuthenticator, but does not work when the flow uses IdpDetectExistingBrokerUserAuthenticator.
Version
26.7.3
Regression
The issue is a regression
Expected behavior
IdpDetectExistingBrokerUserAuthenticator should honor the cross-browser verification state in the same way as IdpCreateUserIfUniqueAuthenticator.
In other words, once the verification link has been consumed, the authenticator should be able to detect that verified state and continue the existing-user linking path correctly.
Actual behavior
When using IdpDetectExistingBrokerUserAuthenticator, the cross-browser verification state is not handled equivalently.
This results in the user being sent again to the “verification email sent” page and the federated identity link not being persisted at the end of first broker login.
How to Reproduce?
A first broker login flow for existing users can be configured with steps such as:
IdpDetectExistingBrokerUserAuthenticator
IdpEmailVerificationAuthenticator
IdpConfirmOverrideLinkAuthenticator
IdpAutoLinkAuthenticator
Reproduction:
Create a local user in the realm.
Ensure this user does not yet have a federated identity link for the tested IdP.
Start authentication through the external IdP.
Let the first broker login flow detect the existing local user.
Receive the account-link verification email and close the current tab
Open the email link in another browser or a fresh session.
Activity
fix(broker): Allows cross session email validation (keycloak#52604)
fix(broker): Allows cross session email validation (keycloak#52604)
fix(broker): Allows cross session email validation (keycloak#52604)
vaceksimon commentedon Oct 5, 2026
Hello @olivierboudet, apologies for the delay in getting to your report.
I see you already produced a fix. I hope it's okay if I assign this issue to you.
keycloak-github-bot commentedon Oct 5, 2026
Due to the amount of issues reported by the community we are not able to prioritise resolving this issue at the moment.
If you are affected by this issue, upvote it by adding a 👍 to the description. We would also welcome a contribution to fix the issue.
fix(broker): Allows cross session email validation (keycloak#52604)
fix(broker): Allows cross session email validation (#52604) (#52626)
fix(broker): Allows cross session email validation (keycloak#52604) (k…
fix(broker): Allows cross session email validation (keycloak#52604) (k…