Keycloak Logout Issue Across Multiple Domains (Angular & React)

Discussão em 'Angular' iniciado por Anuj Gupta, Abril 11, 2025.

  1. Anuj Gupta

    Anuj Gupta Guest

    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?

    Continue reading...

Compartilhe esta Página