0

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

Programmer
  • 657
  • 4
  • 9
  • 21
  • You say you're able to login with user2 in realm2 even if user is not created in realm2? Which keycloak version do you use? Which authentication protocol? – Aritz Apr 09 '18 at 13:00

1 Answers1

3

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.

Haseb Ansari
  • 587
  • 1
  • 7
  • 23