Skip to content

IdpDetectExistingBrokerUserAuthenticator misses cross-browser account-link verification handling implemented in IdpCreateUserIfUniqueAuthenticator #52604

Closed

Description

@olivierboudet

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

authentication

Describe the bug

Related to:

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:

  1. Create a local user in the realm.
  2. Ensure this user does not yet have a federated identity link for the tested IdP.
  3. Start authentication through the external IdP.
  4. Let the first broker login flow detect the existing local user.
  5. Receive the account-link verification email and close the current tab
  6. Open the email link in another browser or a fresh session.
  7. Resume the original broker login flow.

Anything else?

No response

Activity

  1. added
    kind/bug
    on Sep 10, 2026
  2. added
    area/authentication
    on Sep 10, 2026
  3. self-assigned this
    on Oct 5, 2026
  4. vaceksimon commented on Oct 5, 2026

    @vaceksimon
    Contributor

    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.

  5. keycloak-github-bot commented on Oct 5, 2026

    @keycloak-github-bot

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/authenticationhelp wantedkind/bugpriority/normalrelease/27.0.0status/auto-bumpstatus/auto-expireteam/core-authn

Type

Fields

No fields configured for bug.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions