SAML
Cheat sheet · https://pcornel.dk/topic.php?topic=4493
Answer
SAML 2.0 is an XML-based SSO standard where the identity provider sends a signed assertion about the user to the service provider, typically through the browser. It is common in enterprise applications.
Remember
- IdP sends a signed XML assertion via the browser.
- Audience and ACS URL must match.
- Clock skew breaks assertions.
First checks
- Browser developer tools / SAML tracer — capture the POST to the ACS URL.
echo "$SAMLRESPONSE" | base64 -d | xmllint --format -— decode the response.- Compare Issuer, Audience, Recipient, NotOnOrAfter, NameID with the SP configuration.
- IdP sign-in logs (e.g. Entra enterprise application) — IdP-side result.
Verify in this order
SP AuthnRequest → IdP authentication → signed Response/Assertion POSTed to ACS → SP validates issuer, signature, audience, recipient, time, InResponseTo → NameID/attributes mapped → SP session
Where it usually breaks
First mismatch in identity lifecycle → authenticator/credential → IdP/federation/session → authorization policy → target resource → audit trail; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4493