Force switch user after an IDP Broker callback

44 views
Skip to first unread message

Guillaume GILL

unread,
Jul 8, 2025, 4:28:52 AM7/8/25
to Keycloak User
Hi,

I have a use case where I don't find any solution, I would need your advices.

Let's say I'm connected with a user X on the realm Z, but I initialte a new login using an IDP in the same realm.
I go to the external IDP, and when I come back to keycloak as user Y, I'm still connected as X.
If I really want to connect as Y I need to first manualy logout X, then initiate the IDP login.

Anything possible in the authentication flow to force disconnect X when the remote IDP callback Keycloak as Y ?

Thanks !
Reply all
Reply to author
Forward
0 new messages