Repository navigation
Same Java script protocol mapper file for OpenID and SAML clients does not work #16968
Unanswered
sirishkumar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We are using Keycloak 19.0.2 and we have a custom protocol mapper implemented in Java Script which adds attributes to the SAML assertion and to the OIDC token, reference code below for example
metadata-mapper.js
And the corresponding META-INF/keycloak-scripts.json
Here we are using same metadata-mapper.js file for both SAML and OIDC protocol mappers. When the scripts are deployed to Keycloak, I am able to see this protocol mapper available only for OIDC clients but not for SAML clients.
But when I duplicate the js file and update the keycloak-scripts.json file, I can use it for both SAML and OIDC clients. Updated config below
Working configuration
metadata-mapper-saml.js
metadata-mapper-oidc.js
And the corresponding META-INF/keycloak-scripts.json
Is duplicating the js file. expected or am i doing something wrong?
All reactions