Repository navigation
I want a user to get logged in instead of being shown "different user is already authenticated. Please log out first" #42602
Answered
by
embesozzi
Shaurya-GitH
asked this question in
Q&A
|
In tab1, user A logs in to his account. Then, in tab2, user B tries to log in, but keycloak shows "different user is already authenticated" error. Instead of this error, I want that user A gets logged out and user B gets logged in without the error being shown. I am open to using a custom SPI (already using Post-login flow SPIs). Any help will be appreciated. Thank you. |
Answered by
embesozzi
Sep 15, 2025
Replies: 1 comment 1 reply
|
Easy peasy here, just follow the open standards. OpenID Connect [1] has a standard parameter, |
1 reply
Answer selected by
Shaurya-GitH
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Easy peasy here, just follow the open standards. OpenID Connect [1] has a standard parameter,
prompt, that you can specify in the authentication request with the valuelogin(for example:authorize?prompt=login,{other-params}) . This forces a login, no matter if you already have an existing session in the IdP.[1] https://openid.net/specs/openid-connect-core-1_0.html