SAML Service Provider (SP) is the application or service that relies on an external Identity Provider for user authentication. The SP trusts assertions from configured IdPs and grants access based on the identity information they provide.
// 1. User accesses protected resource
GET /dashboard
// 2. SP redirects to IdP with SAMLRequest
HTTP 302 Redirect
Location: https://idp.example.com/sso?SAMLRequest=...
// 3. After IdP authentication, SP receives response at ACS URL
POST /saml/acs
SAMLResponse=PHNhbWxwOlJlc3Bvb...
// 4. SP validates and creates session
Set-Cookie: session=...
// SP Metadata includes:
- Entity ID (unique identifier)
- Assertion Consumer Service (ACS) URL
- Single Logout Service URL
- X.509 certificate for signature validation
- Supported bindings (POST, Redirect)