A security engineer is configuring a Service Provider-initiated SAML 2.0 Single Sign-On (SSO) integration between an enterprise SaaS application (Service Provider) and an external cloud Identity Provider (IdP) with mandatory MFA. In what order should the steps occur to complete a secure authentication and access flow?
- 1The user attempts to access a protected resource on the Service Provider (SP), causing the SP to create a SAML AuthnRequest.
- 2The client browser is redirected to the Identity Provider (IdP) single sign-on URL containing the encoded AuthnRequest.
- 3The IdP authenticates the user's primary credentials and prompts for a secondary Multi-Factor Authentication (MFA) factor.
- 4The IdP issues a digitally signed SAML Response assertion and redirects it to the SP Assertion Consumer Service (ACS) endpoint.
- 5The SP validates the cryptographic signature and token validity period, then establishes a local user session to grant access.
Answer
The correct operational sequence begins with the user requesting access at the Service Provider, followed by the SP generating a SAML AuthnRequest and redirecting the browser to the Identity Provider. Next, the IdP authenticates the user credentials and MFA challenge. After authentication succeeds, the IdP sends a signed SAML response to the SP Assertion Consumer Service endpoint. Finally, the SP validates the signature and token claims before creating the local session.
In a Service Provider (SP)-initiated SAML 2.0 Single Sign-On sequence, the workflow must start at the resource endpoint (SP), redirect to the identity repository (IdP) for credential and MFA verification, return a signed SAML assertion token to the Assertion Consumer Service (ACS) endpoint, and end with cryptographic validation and local session establishment by the SP.
Step-by-Step Solution
Key Concept
SAML 2.0 SP-Initiated SSO Authentication Flow