With keycloak 9.0.2, we have to use a script mapper in a client to add specific claims from header request, but script mapper is missing in mapper type.
Here an extract of our docker-compose file :
version: '3.4'
services:
keycloak:
image: jboss/keycloak:latest
command:
- "-b 0.0.0.0"
- "-Djboss.socket.binding.port-offset=1000"
- "-Dkeycloak.profile.feature.scripts=enabled"
env_file:
- ./keycloak.env
ports:
- 9080:9080
- 9443:9443
- 10990:10990
In logs, we see the line at startup :
09:31:55,437 INFO [org.keycloak.common.Profile] (ServerService Thread Pool -- 69) Preview feature enabled: scripts
But when we create a new client and add mapper, in mapper type we don't see Script mapper. We have try with standalone version without Docker, and we get same problem.
What are we doing wrong?
Try to enable also upload_scripts
feature:
-Dkeycloak.profile.feature.upload_scripts=enabled