Repository navigation
Deploy script mapper to make realm role attributes available in JWT #20163
Closed
transducer
started this conversation in
Archive
Replies: 1 comment
|
Correct Dockerfile: So folder is not /providers, but /opt/keycloak/providers. Unfortunately the Script Mapper does no longer work, I close the discussion since at least the deploying of the Script Mapper works, which was the original question. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
We are migrating from Keycloak 18.0.0 based on WildFly to 21.1.1 based on Quarkus. In 18.0.0 we were using a Script Mapper to merge the Realm Role Attributes of a user into the JWT. It does concatenation of the values if the claim already exists from Group Attributes.
According to the documentation as linked in a similar question, Script Mappers are also available in Quarkus. The Keycloak documentation states to deploy them into /providers/ and build them via
bin/kc.[sh|bat] build, which I did in my Dockerfile:But it is not active in Keycloak then.
Is there a way to activate the Script Mappers in Quarkus? If not, what is the recommended route to merge attributes of roles into the JWT?
All reactions