Protocol Mappers alternative for Keycloak 19

Hello,

I currently updated from Keycloak:legacy docker container to Latest.

I was able to import my old realm setting on to the new version (with some edits). But my issue is that the tab “mappers” from client settings completely disappeared. I read something that in Keycloak 18 the upload-scripts was removed and “OpenID Connect Script Mapper” was removed with it.

My issue is,how to get my Token mapper User Attribute/ User Propery mappers back and how to set them as the Mattermost and Gitlab inegrations are fully dependent on that feature.

What I dont understand…is that I am not adding any JS scripts as far as I know, only User Attribute Mappers added via the GUI, so why they are also removed?

Here isone mapper used in Marttermost integration:

And here is a list of them used for Gitlab:

and of them them as a example:


Can you please explain me, how can I add those mappers or how to work with these clients to make them cooperate with Keycloak?

All the tutorials online are still for the old version and using mappers.

Thank you!

1 Like

Are you using the new admin console? There are some discussions about this:

Seems that the removal of “non-scoped” client-bound mappers will be one of the next “improvement”…

1 Like

Try finding the mappers within the client–>client scope–> dedicated scope. For example, in admin console:

  • Click on the specific client where you want to define mappers.

  • Then go to the tab “Client Scopes”.

  • Select the -dedicated scope

  • Here is where you can define and see your mappers.

Here is a screen shot and hope it helps.
Screen Shot 2022-10-19 at 6.15.35 PM