Repository navigation
Keycloak Logout Issue Across Multiple Domains (Angular & React) #38872
Unanswered
anujGupta1308
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem:
We have an application running on two different domains:
Angular App: dev.app-test.com (using keycloak-angular)
React App: dev-new.app-test.com (using Next.js built-in authentication for Keycloak)
Both applications use the same realm in Keycloak but have different client IDs. Users log in with the same credentials across both applications.
The issue occurs when a user logs out from the React application. The Angular application does not log out automatically. Instead, the user is only logged out when they manually refresh the page, after which they are prompted to log in again.
Expected Behavior:
We need a real-time logout event that ensures both applications log out simultaneously when the user logs out from either one.
Question:
How can we implement real-time session logout synchronization across multiple domains in Keycloak?
All reactions