I am implementing Salesforce as a service provider and I am expected to provide some general guidelines to the application which will be set as the identity provider.
There is documentation explaining this process of implementation. However, I was not able to understand the difference between the SAML Identity Type and the SAML Identity Location.
SAML Identity Type
- The SAML assertion element that contains the string identifying a Salesforce user. Values include:
- Assertion contains User’s Salesforce username - Use this option if your identity provider passes the Salesforce username in SAML assertions.
- Assertion contains the Federation ID from the User object - Use this option if your identity provider passes a user identifier for customers or partners in the SAML assertion
- Assertion contains the User ID from the User object - Use this option if your identity provider passes a user identifier for users from your org in the SAML assertion.
SAML Identity Location
- The SAML assertion element that specifies where to locate the user’s identity. Values include:
- Identity is in the NameIdentifier element of the Subject statement The Salesforce Username or FederationIdentifier is in the statement of the assertion.
- Identity is in an Attribute element - The Salesforce Username or FederationIdentifier is specified in an in the assertion’s .
Attribute Name
- If you select Identity is in an Attribute element, this field contains the value of AttributeName that’s specified in , which is the User ID.
Could anyone explain the difference?
For example, I need to map the users based on their Email field on User object. Which configuration do I choose?