Salesforce Certified Platform Identity and Access Management Architect free question 2 / 10 · Domain 1: Identity Management Concepts
A user opens a bookmarked link to a protected page in the service provider without being logged in anywhere. Which message starts the SAML login that follows?
- A signed SAML response that the identity provider sends to the service provider before the user has asked for anything
- An OAuth authorization code that the service provider exchanges for an assertion at the token endpoint
- A SAML request that the service provider sends to the identity provider to ask it to authenticate the user
- A session cookie that the identity provider writes to the service provider’s domain when it detects the bookmarked link
Show the answer and explanation
Answer: C
Why this is correct
In the service provider-initiated flow the user asks for a protected resource, and the service provider starts the login by sending a SAML request to the identity provider. The identity provider shows its login page, authenticates the user and then returns a signed SAML response carrying the assertion. The service provider validates the signature and logs the user in.
Why the other options are wrong
"A signed SAML response that the identity provider sends to the service provider before the user has asked for anything" … A response sent without a request is the shape of the identity provider-initiated flow, which starts when the user is already logged in to the identity provider.
"A session cookie that the identity provider writes to the service provider’s domain when it detects the bookmarked link" … The page describes the flow as a SAML request, a SAML response and an assertion.
"An OAuth authorization code that the service provider exchanges for an assertion at the token endpoint" … The page’s flow starts with a SAML request to the identity provider.
Key points
In a service-provider-initiated flow, the service provider begins the login process with a SAML request to the identity provider, asking it to authenticate the user.