Integrate a SAML 2.0 service provider with an identity provider

domain: docs.oasis-open.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Generate your SP metadata XML containing your entity ID, AssertionConsumerService URL, and your SP's signing certificate (refer to it as a PEM-encoded certificate in configuration); share this with the IdP administrator
  2. Obtain the IdP metadata XML (or configure issuer, SSO URL, and IdP signing certificate manually) and load it into your SAML library
  3. On a login attempt, generate an AuthnRequest, sign it with your SP private key, and redirect the user to the IdP SSO URL via HTTP-Redirect or HTTP-POST binding
  4. Receive the SAMLResponse at your ACS URL; base64-decode and XML-parse it, then verify the XML signature against the IdP's certificate
  5. Extract the NameID and attribute statements from the assertion; validate the Conditions element (NotBefore, NotOnOrAfter, AudienceRestriction must include your entity ID)
  6. Implement one-time-use tracking for the InResponseTo ID to prevent replay attacks, then create or update the local user session

Known gotchas

Related routes

Integrate Login.gov as a SAML 2.0 identity provider for a government service, as an alternative to Login.gov's OpenID Connect integration
developers.login.gov · 6 steps · unrated
Implement SAML 2.0 SP-initiated SSO for an edtech tool integrating with a university's Shibboleth IdP, including attribute mapping and FERPA-compliant attribute release
shibboleth.net · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans