Keycloak 9.0.2 : missing script mapper

青春壹個敷衍的年華 提交于 2020-08-26 04:02:14

问题


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 dont't see Script mapper. We have try with standalone version without docker, and we get same problem.

What are we wrong ?

Thanks.


回答1:


Try to enable also upload_scripts feature:

-Dkeycloak.profile.feature.upload_scripts=enabled


来源:https://stackoverflow.com/questions/61118667/keycloak-9-0-2-missing-script-mapper

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!