Use this when an application trusts an IdP to log users in.
Service Provider
A service provider (SP), or relying party, is the application that trusts an identity provider's assertions or tokens to log users in, configured with the IdP's metadata and certificate.
1. The SP/relying party consumes assertions/tokens.
2. Validate everything.
3. Map claims to local roles.
4. Disable local password logins where possible.
5. Handle logout.
assertion/token → SP validation → session
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Testing an SP Verify boundary
- Send an assertion with a changed attribute but the original signature — it must be rejected.
- Replay an old assertion after
NotOnOrAfter— rejected. - Send an assertion for another SP's audience — rejected.
- Use tools such as SAML Raider (Burp) in an authorised test environment.
Step 2 Common SP vulnerabilities Narrow the fault
- Not validating the signature, or accepting unsigned assertions.
- XML signature wrapping (SAML) — use a maintained library.
- Ignoring
NotOnOrAfter/exp, allowing replay. - Accepting tokens meant for another audience.
- Allowing the
alg: noneJWT or confusing RS256/HS256.
Step 3 Common mistakes Narrow the fault
- SP metadata not updated after IdP certificate rollover.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Configured with IdP metadata and certificate.
- Maps claims to local users.
- Must validate assertions.
- SP SSO configuration — entityID/ACS or client ID/redirect
- Token/assertion validation code — checks
- Local login disabled — SSO only
ReferenceWhy it matters1 section · depth on demand
What the SP must check
- Signature on the assertion/token using the IdP's current certificate or JWKS.
- Issuer and audience match this SP.
- Validity window (NotBefore/NotOnOrAfter,
exp) with small clock skew. - Replay protection (InResponseTo, nonce).
- The expected user identifier claim, not just the display name.
Many SSO vulnerabilities come from SPs that skip signature or audience checks.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
The service provider (SP) — in OIDC terms the relying party — is the application that trusts the identity provider to authenticate users. It receives an assertion or token, validates it and creates its own session.
What the SP must validate:
| Check | Why |
|---|---|
| Signature with the IdP's key | Authenticity |
| Issuer and audience | Token meant for this SP from the trusted IdP |
| Validity times | Not expired, not used too early |
| Nonce/InResponseTo | Prevent replay and injection |
| Recipient/redirect URI | Correct endpoint |
Use well-maintained SAML/OIDC libraries rather than custom parsing — signature-wrapping and validation bugs are a classic source of authentication bypasses.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Single Sign-On & Federation → Service Provider. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc7522 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.