SSO does not work

We have two tomcat web apps registered in the same keycloak realm. The authentication works perfectly for each app. However, the sso does not work. After a user authenticates and accesses one app, and tries accessing another app, the user has to re-authenticate. We have turn off forced re-authentication. Is there any extra steps to make sso work. We follow the doc on “how to secure an app” in keycloak website to set up the two apps.

Any advice? --Thanks!


it sounds strange, if both apps are clients in the same keycloak realm there’s no point this to happen.
When arriving on your second app you should be redirected to keycloak and having a cookie set for the realm, you should be fine.

Can you see the existing cookie when arriving on the login page ?