SP-Initiated SSO
How does SP-initiated SAML single sign-on work?
Service Provider initiated Single Sign-On using the SAML 2.0 Web Browser SSO Profile (saml-profiles §4.1). The SP detects an unauthenticated user, generates an AuthnRequest, and redirects the user to the IdP for authentication. After successful authentication, the IdP returns a signed SAML Response containing an Assertion with the user's identity. This is the most common SAML SSO flow in enterprise environments.
XML-BasedSSO
Sequence Diagram
Click any step for details
Request
Response
Redirect
Internal
Step-by-Step Breakdown
1
User Accesses SP Resource
User → Service Provider
2
SP Creates AuthnRequest
Service Provider → Service Provider
3
Redirect to IdP
Service Provider → Identity Provider
4
User Authenticates
User → Identity Provider
5
IdP Creates Response
Identity Provider → Identity Provider
6
Response to SP via POST
Identity Provider → Service Provider
7
SP Validates Response
Service Provider → Service Provider
8
Session Created
Service Provider → User
Token Inspector
Specs for this flow
Sections of the protocol that normatively define this flow, plus the security considerations that apply to it.