Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a SAML javascript mapper #17

Closed
AlistairDoswald opened this issue Mar 8, 2018 · 1 comment
Closed

Create a SAML javascript mapper #17

AlistairDoswald opened this issue Mar 8, 2018 · 1 comment

Comments

@AlistairDoswald
Copy link

The idea is to create a generic mapper capable of creating attributes from a javascript description. These mappers could then be used to create values from any value present in the context. Such a mapper may even be able to call an external API to get such information.

The idea is the following: create a mapper similar to the org.keycloak.protocol.saml.mappers.UserAttributeStatementMapper (or corresponding com.quest.keycloak.protocol.wsfed.mappers.SAMLUserAttributeStatementMapper), however in the transformAttribute evaluate a javascript code to obtain the attribute rather then obtaining it from a user's attributes.

Such a use of javascript in keycloak is already done, for example, for the Authorization module, with the javascript-based policy.

@AlistairDoswald
Copy link
Author

Added the SAMLScriptBasedMapper for this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant