+
Skip to content
Discussion options

You must be logged in to vote

I think since Keycloak 18 it's no longer possible to upload scripts in the admin console, I think for security reasons.

That said it can be tedious to develop a script in this way. For development testing, on your development Keycloak instance, you can enable the oidc-script-based-protocol-mapper.

  • The scripts feature needs to be enabled
  • Create a oidc-script-based-protocol-mapper.jar with the following content in META-INF/services/org.keycloak.protocol.ProtocolMapper
    org.keycloak.protocol.oidc.mappers.ScriptBasedOIDCProtocolMapper
    
  • Deploy to providers
  • When you login to your master realm under Provider Info under protocol-mapper you should see oidc-script-based-protocol-mapper as one of them

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@lfvjimisola
Comment options

@lfvjimisola
Comment options

Answer selected by akloster
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载