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

What information does the 'Relaystate' parameter contain in sp-Initiated Single Sign-on?

Full set: 248 questions
Answer options
A: Reference to a URL redirect parameter at the identity provider.
B: Reference to a URL redirect parameter at the service provider. Correct answer
C: Reference to the login address URL of the service provider.
D: Reference to the login address URL of the identity Provider.
Correct Answer:
B. Reference to a URL redirect parameter at the service provider.
Explanation

In an SP-initiated Single Sign-On (SSO) flow, the RelayState parameter is an opaque identifier used by the Service Provider (SP) to maintain state. When a user attempts to access a protected resource, the SP initiates the SSO process by sending an authentication request to the Identity Provider (IdP). The SP includes the URL of the originally requested resource in the RelayState parameter. The IdP returns this value unmodified with the SAML response. Upon successful authentication, the SP uses the RelayState value to redirect the user to their intended destination, ensuring a seamless experience.

Why Incorrect

A. The RelayState parameter is opaque to the Identity Provider; the IdP does not interpret or use it but simply returns it to the SP.
C. The login address of the SP is a known endpoint for initiating authentication, not the target destination URL contained within RelayState.
D. The IdP's login URL is the destination for the authentication request itself, not the value carried by the RelayState parameter.

References

1. OASIS Security Assertion Markup Language (SAML) V2.0 Core Specification

March 2005. Document identifier sstc-saml-core-2.0-os.

Section 3.4.1

Web Browser SSO Profile: "The RelayState data is passed from the service provider to the identity provider and then back to the service provider. This data is opaque to the identity provider... When the response is delivered to the service provider

it SHOULD be able to use the RelayState data to resume the user's interaction with the service provider at the point at which it was interrupted."

2. Salesforce Identity Documentation

Single Sign-On.

SAML Login Flow Section: "RelayState: The URL where the user is redirected after a successful sign-on. This URL is typically the Salesforce page that the user was trying to access before authentication was requested." This confirms RelayState is a redirect parameter for the SP.

3. Stanford University IT

SAML Integration Guide.

SAML Attributes Section: "RelayState: The URL of the resource the user was trying to access. The IdP will return this value to the SP so that the user can be redirected to the correct page after authenticating." This explicitly defines RelayState as the target URL at the service provider.

Scroll to Top