Hi,
I am making some tests implementing an SSO SAML using Auth0 as IdP and Salesforce as SP.
I would customize the Attributes for the SAML Response generated on Auth0.
I figure out that I can use the Rules to do achieve that and the mapSamlAttributes function.
Everything looks fine as long as I use either the user or context object.
My question is: how can I use constants?
I have also tried using the configuration object but it seems its values are visible since they are never included inside the SAML Response: Rule Configuration
Here a piece of code:
function mapSamlAttributes(user, context, callback) {
context.samlConfiguration.mappings = {
“http://schemas.xmlsoap.org/ws/2005/05/identity/claims/MyCustomAttribute”: “configuration.asd”
};
callback(null, user, context);
}
Thanks