Tried with the custom protocol mapper and it works!! I achieved to add some sample info from the mapper to the token, but I still need to access other secured endpoint to get the organizations.
What's the most proper way to grant access to the mappers code? Should I rely on the access token that keycloak has just created? I could make the remote endpoint grant the access if the incoming request asks for info referring to same user.
Nire Sony Xperia™ telefonotik bidalita
I'm developing the authorization part for my application with keycloak, but I need to include some extra info when the authentication is performed.
Each user in my application has permissions for a set of organizations and I want to have the organization ids loaded in the access token (I think this might be convenient?). The users themselves might be stored in the keycloak database itself, but the organizations they have access to might change in runtime, that's why I want to store them in the access token, to have them reloaded each time a user logs in. Do I need to implement a custom SPI for this?
Regards
_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user