IDENTITY-AND-ACCESS-MANAGEMENT-ARCHITECT practice question 20 of 30

In an SP-Initiated SAML SSO setup where the user tries to access a resource on the Service Provider, What HTTP param should be used when submitting a SAML Request to the Idp to ensure the user is returned to the intended resourse after authentication?

Full set: 248 questions
Answer options
A: RedirectURL
B: RelayState Correct answer
C: DisplayState
D: StartURL
Correct Answer:
B. RelayState
Explanation

The RelayState parameter is the standard mechanism within the SAML 2.0 protocol designed to persist and transport state information between a Service Provider (SP) and an Identity Provider (IdP). In an SP-initiated flow, when a user requests a protected resource, the SP sends an AuthnRequest to the IdP and includes the RelayState parameter, which typically contains the URL of the originally requested resource. The IdP is mandated by the SAML specification to return this RelayState value unmodified with the SAML Response. The SP then uses this value to redirect the now-authenticated user to their intended destination.

Why Incorrect

A. RedirectURL: This is a generic term for a URL used in a redirect, not the specific, standardized parameter name defined in the SAML 2.0 specification for this function.
C. DisplayState: This is not a standard parameter within the SAML 2.0 protocol bindings and is not used for maintaining application state during the authentication flow.
D. StartURL: This parameter is typically used in IdP-initiated SSO configurations to specify the initial landing page at the SP, not for returning a user to a specific resource post-authentication in an SP-initiated flow. ---

References

1. OASIS SAML V2.0 Bindings Specification: In "Bindings for the OASIS Security Assertion Markup Language (SAML) V2.0," OASIS Standard, 15 March 2005. Section 3.4.3, "Protocol Message Processing Rules" for the HTTP Redirect Binding, states: "If the message is being sent to an identity provider, the service provider MAY include a RelayState data... The identity provider MUST return this value unmodified to the service provider in the subsequent Response message." (Document identifier: sstc-saml-bindings-errata-2.0-wd-07)

2. Salesforce Official Documentation: In the "Single Sign-On with SAML on the Salesforce Platform" guide, the RelayState parameter is defined as: "The URL where the user is redirected after successful authentication. This URL must be within the salesforce.com domain." This confirms its role in post-authentication redirection. (See "SAML Assertion Flow" section).

3. Shibboleth Consortium (Vendor/Open Source Documentation): The official Shibboleth documentation, a widely used open-source SAML implementation, explains RelayState as the mechanism "to carry state from the SP to the IdP and back to the SP." It explicitly notes its use for directing the user back to the originally requested resource. (See Shibboleth Wiki, "RelayState" topic).

4. Stanford University IT Services Documentation: In its technical documentation for SAML integration, Stanford University describes the SP-initiated flow, stating: "The SP can also include a RelayState parameter, which is an opaque string that the IdP will return to the SP along with the SAML response. The SP typically uses the RelayState to return the user to the page they were on when they initiated the login." (See Stanford WebAuth/SAML documentation).

Scroll to Top