We use Keycloak with Google IDP to authenticate. When a user log in using Google, I want to hook into the flow to add some roles for that user session.
What should I do? I have tried creating to custom Authenticator but not sure this is the possible or best practice.
Please help! Thanks!
When a user log in using google, I want to hook into the flow to add some roles for that user session.
Not sure what you do mean by roles to the user session. However, if you mean add roles to the user yes you can do that out of the box for instance:
Mapper Type
: Hardcoded Role
Here is the list of Mapper Types available for the Google IDP: