SP‑initiated SSO in 7 steps
- User browses to SP → SP creates AuthnRequest.
- SP redirects to IdP SSO service with AuthnRequest (Redirect or POST binding).
- IdP authenticates user.
- IdP issues
SAMLResponsewith signed Assertion. - Browser POSTs
SAMLResponseto SP ACS. - SP validates signature, audience, conditions, and extracts attributes.
- SP establishes session and redirects to app.
Local demo
Run node demos/node/server.js then open http://localhost:3000/saml/sp. This demo generates a (unsigned) SAMLResponse to illustrate flow and decoding on the ACS.
Note: For production, enforce XML signature validation and certificate pinning. See README.