Repository navigation
Create authenctication flow that lets a user select active role in client after sign in? #15164
|
Is it possible to create an authenticaiton flow after a user has signed in to a client that lets them (the user) choose thier active role in the client and store that active role in the jwt token? |
Answered by
dominikschlosser
Oct 27, 2022
Replies: 1 comment 1 reply
|
Hi, we have a similar requirement. I created a proof-of-concept here: https://github.com/dominikschlosser/keycloak-extension-playground/tree/main/extensions/role-filter It consists of a custom Authenticator and ProtocolMapper and should be straight forward to understand. |
1 reply
Answer selected by
agreedSkiing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, we have a similar requirement. I created a proof-of-concept here: https://github.com/dominikschlosser/keycloak-extension-playground/tree/main/extensions/role-filter
It consists of a custom Authenticator and ProtocolMapper and should be straight forward to understand.