hey, I have static common XML attributes that I would like to pass for each user, I’m performing and IDP-initiated-flow using AWS Cognito <> Auth0 <> SP,
I have configured:
- Rule to support static data with mappings (see below)
- Added application metadata (see below)
but for some reason data is not passed correctly to SAML Response, if I change the mappings from client_metadata to app_metadata it works, but I would like to have same data For all users (and not setup each time).
am I’m missing something? how can I pass static XML data for every SAML response user?
thanks!
function changeSamlConfiguration(user, context, callback) {
  context.samlConfiguration = context.samlConfiguration || {};
  context.samlConfiguration.audience = 'federate-uat.ipipeline.com:saml2';
  context.samlConfiguration.mapUnknownClaimsAsIs = true;
  context.samlConfiguration.mapIdentities = false;
  console.log("aAA", context.clientMetadata);
  context.samlConfiguration.mappings = {
     "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier":     "user_id",
     "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress":       "email",
     "CompanyIdentifier":      "client_metadata.CompanyIdentifier",
  "ChannelName": "client_metadata.ChannelName",
  "Action": "client_metadata.Action",
     "Groups":      "client_metadata.Groups",
  "TimeoutURL": "client_metadata.TimeoutURL"
   };
  callback(null, user, context);
}
