Hi keycloak's experts,

 

I'm wondering if it's possible to chain realm's invocation in keycloak (and also, if it's a good practice or not).

The use case is the following :

     Keycloak is used as an SSO identity server for a set of application with different security policies, but for the same users. (so, same user directory).

     My idea was the following :

So, a user authenticated against the "2fa realm" get two tokens : the simple realm token and the 2FA token.

 

Thanks in advance for your valuable comments , ideas or critics.

 

Best regards.


Steve