SSo in different realms in keycloak Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of SSo in different realms in keycloak without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I am trying the SSO between multiple realms in keycloak. I have two different realms and user1 is common to both the realms. user2 is specifc for realm one.

I am first authenticating the users against realm1 and realm2. For user1 there are no issue accesstoken is returned from both the realms. But in case of user2 also the accesstoken is returned from both the realms. but when I try with user2 in realm2 only the accesstoken is null.

Can anyone help me? Thanks in advance

Answer

Theoretically it’s not possible to have cross-realm SSO functionality, as the realm in Keycloak as some specific purpose and while handling SSO through various realms can lead to security loop holes.

We are here to answer your question about SSo in different realms in keycloak - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji