SP-Initiated SSO
SP-initiated SSO is a single sign-on flow that begins at the application a user wants to reach, rather than at the identity provider. When the user tries to access a protected page of the service provider, they are redirected to the identity provider to sign in, and are then returned to the application. It is generally recommended over IdP-initiated SSO because starting at the application allows the request to be tied to the specific resource the user intended to access.
SP-initiated SSO is a federated single sign-on flow in which the authentication sequence is triggered by the service provider (SP) when a principal attempts to access a protected resource, as opposed to IdP-initiated SSO where the flow starts at the identity provider (IdP). In a SAML 2.0 context, the SP typically generates an authentication request (AuthnRequest) and redirects the user agent to the IdP, which performs authentication and returns a SAML assertion; the SP then validates the assertion and establishes a session. Because the flow originates at the SP, the request can be correlated to the intended resource and to SP-generated state, which is one reason SP-initiated flows are often recommended over IdP-initiated flows, though specific behavior depends on the standard profile, binding, and vendor configuration. Note that this term describes the initiation and message flow of the SSO exchange; the underlying authentication of the user is performed at the IdP, and authorization decisions at the SP remain a separate concern.
Why it matters
SP-initiated SSO matters because the point at which an authentication flow begins has direct security and usability consequences. When the flow originates at the service provider, the request can be tied to the specific resource the user intended to access and to SP-generated state, which is a primary reason SP-initiated flows are generally recommended over IdP-initiated flows. Sources such as Auth0 explicitly advise using SP-initiated flows whenever possible and understanding the risks before enabling IdP-initiated SSO.
The distinction is significant for teams weighing federation design choices. Because the SP originates the exchange, it controls the entry point and can correlate the returned assertion to a request it issued, rather than accepting an unsolicited assertion as occurs in some IdP-initiated patterns. Depending on the standard profile, binding, and vendor configuration, this correlation supports tighter handling of the SSO exchange, though the exact protections available vary and should be evaluated against the specific deployment.
It is worth keeping scope clear: SP-initiated SSO describes only the initiation and message flow of the single sign-on exchange. The actual authentication of the user is performed at the identity provider, and authorization decisions at the service provider remain a separate concern. Treating the initiation model as a complete security control would be a mistake; it is one design decision among many.
Who it's relevant to
Inside SP-Initiated SSO
Common questions
Answers to the questions practitioners most commonly ask about SP-Initiated SSO.
