Check Keycloak SSO session presence from another domain

609 Views Asked by At

My application is on the example.com domain.

My Keycloak SSO is on the sso.example.com.

I use Keycloak 18.

Is there a way to check the SSO session presence from the same browser, from example.com domain? I need this to decide whether to redirect the user, from example.com to the Keycloak login functionality on sso.example.com in order to re-authenticate them on example.com.

My initial idea was to check the presence of the KEYCLOAK_SESSION cookie, but it is stored under the sso.example.com domain and is not accessible from the example.com application.

0

There are 0 best solutions below