Keycloak 9.0.2:缺少脚本映射器 [英] Keycloak 9.0.2 : missing script mapper

查看:210
本文介绍了Keycloak 9.0.2:缺少脚本映射器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于keycloak 9.0.2,我们必须在客户端中使用脚本映射器来添加来自标头请求的特定声明,但是映射器类型中缺少脚本映射器。

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.

以下是我们的docker-compose文件的摘录:

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线程池-69)启用了预览功能:脚本

09:31:55,437 INFO [org.keycloak.common.Profile] (ServerService Thread Pool -- 69) Preview feature enabled: scripts

但是当我们创建一个新客户端并添加映射器时,在映射器类型中我们不会'请参阅脚本映射器。我们尝试了不带docker的独立版本,并且遇到了同样的问题。

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.

我们怎么了?

谢谢。

推荐答案

尝试同时启用 upload_scripts 功能:

-Dkeycloak.profile.feature.upload_scripts=enabled

这篇关于Keycloak 9.0.2:缺少脚本映射器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆