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.