SAML Attribute Mapping
Last updated
Was this helpful?
Last updated
Was this helpful?
By default, only the sub
field of the is included in the SAML assertion. To include other fields like users' email address, phone number, etc., you can set up SAML Attribute Mapping for the fields.
SAML Attribute Mapping allows you to configure your Authgear client application to include additional fields in the SAML assertion. This is a great way to pass additional data from Authgear to your SAML application that depends on Authgear as an Identity Provider.
Authgear supports using SAML attribute mapping to include additional fields in the SAML assertion using any field in the user profile attributes (UserInfo).
There's also support for a template that can be used to customize the values of the fields before including them in the SAML assertion. For example, the template {{.preferred_username}}@example.com
will return the preferred_username
field from the UserInfo prepended to '@example.com'.
The above example creates three SAML attributes (family_name
, given_name
, placeholder_email
) that will be added to the SAML assertion.
The value for pointer
refers to a user profile attribute in the UserInfo object.
From an attribute that uses a template, the value in between the {{}}
also refers to a user profile attribute in the UserInfo object.