fav_genre
and user_metadata.fav_streaming_service
are undefined but can be customized and mapped to the Response populated by Auth0.
In the example below, "fav_genre": "fiction"
gets mapped to the http://schemas.auth0.com/fav_genre attribute in the SAML Response with the fiction
value while"user_metadata": {"fav_streaming_service": "hulu"}
does not appear in the SAML response at all.
Resulting SAML Response that the IdP sends:
"fiction"
value.
Next, map the attributes in the Mappings Object of the SAML2 add-on settings to account for that.
After doing so, notice how the "fiction"
value is the same in the SAML Response, but the attribute name in the SAML Response has been changed from the default http://schemas.auth0.com/fav_fiction to http://schemas.auth0.com/books.
Configuring the SAML2 add-on mappings object: