SAML
How SAML sign-in works, its bindings, reading an assertion, metadata and key rollover, XML signature wrapping, validating a response, NameID and attributes, logout, and running SAML beside OpenID Connect.
Start with How SAML sign-in works
- How SAML sign-in worksFollow a SAML sign-in between an identity provider, a service provider and the browser, from the AuthnRequest to the service's own session.
- SAML bindingsRead an AuthnRequest, a signed HTTP-Redirect query string and an auto-posted HTTP-POST form, and see when Artifact and SOAP use the back channel.
- Reading an assertionRead a complete signed response: issuer, NameID, bearer subject confirmation, conditions, authentication context, attributes and encrypted assertions.
- Metadata, certificates, and key rolloverRead identity provider and service provider metadata, give it a trust path, and roll over each side's keys in the right order.
- SP-initiated and IdP-initiated sign-inTie a solicited response to its request and browser, and understand the login CSRF and replay risks of unsolicited responses.
- XML signatures and wrapping attacksFollow an enveloped XML signature through verification, and see how signature wrapping, comment truncation and weak algorithms defeat careless service providers.
- Validating a responseValidate a SAML response in order, from what the signature covers to status, recipient, times, audience, request and replay, before creating a session.
- NameID and attributesUse pairwise persistent NameIDs, request a format with NameIDPolicy, handle InvalidNameIDPolicy, and keep attributes separate from identity.
- Single logoutFollow a LogoutRequest through the identity provider to the other participants, and report an incomplete result honestly with PartialLogout.
- Running SAML beside OpenID ConnectCompare SAML and OpenID Connect field by field, link accounts across both without matching email addresses, use a broker, and retire the old path safely.