Pcornel
Identity · Single Sign-On & Federation

Federation Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=4503

Back to the Topic

Answer

Troubleshoot federation and SSO by decoding the SAML response or JWT, checking issuer, audience and redirect URIs, signing certificates and their expiry, clock skew, and claim mappings for the user.

Remember

  • Most failures are certificate, audience, redirect URI or clock problems.
  • Decode the SAML response or JWT.
  • Check both IdP and SP logs.

First checks

  • SAML-tracer / browser network log — failing step
  • IdP sign-in logs — error code
  • date -u — clock skew

Commands

curl -sS -D - -o /dev/null <metadata-or-discovery-url>
Read-only/validation observation for HTTP reachability/status/headers for the documented metadata or discovery endpoint.

Verify in this order

SP request → IdP → assertion/token → SP validation

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=4503

Confirmation

Confirm action

Continue?