Skip to main content

SAML learning guide

Learn SAML from the browser flow outward.

Follow the practical SAML 2.0 exchange from request to assertion. Start with what each message is for, then open the official specification when you need the exact rule.

SAML flow at a glance
  1. AuthnRequestActor: SPDirection: SP to IdP through the browserChannel: front-channelPurpose: Requests authentication and identifies the SP, destination, and requested behavior.
  2. User authenticationActor: IdPDirection: Browser and IdPChannel: front-channelPurpose: Authenticates the subject and evaluates the requested authentication context.
  3. SAMLResponseActor: IdPDirection: IdP to SP through the browserChannel: front-channelPurpose: Returns status and an assertion to the SP Assertion Consumer Service.
  4. ACS validationActor: SPDirection: At the SPChannel: front-channelPurpose: Validates signatures, subject confirmation, time, audience, and replay constraints before creating a session.

Current guide

SAML learning paths

Browse every chapter, or choose a goal to follow a shorter ordered route.

Learning mode
Guided paths
Foundations and trustCore lesson2 min readStart here · 1 of 9
Reference only

SAML fundamentals

SAML browser SSO moves an authentication request and a security assertion between an SP and an IdP through the user agent.

What it is

SAML 2.0 is an XML-based framework for assertions and request/response protocols. In browser SSO, the service provider (SP) consumes a response from the identity provider (IdP).

Why it matters

Most integration failures become easier to isolate once you distinguish the protocol message, the browser binding that carries it, and the profile rules that connect the exchange.

How it works

  1. The SP and IdP establish identifiers, endpoints, bindings, and verification keys, usually through metadata.
  2. The browser carries an AuthnRequest to the IdP or begins an IdP-initiated flow without an SP request.
  3. After authentication, the IdP returns a SAML Response message or an artifact through the browser; Artifact Resolution retrieves the response separately.
  4. The SP validates the response and assertion before creating an application session.

Options available

  • SP-initiated and IdP-initiated browser SSO are distinct starting patterns.
  • HTTP-Redirect, HTTP-POST, and HTTP-Artifact are transport bindings with different message-handling rules.
  • Assertions can carry an authentication statement, attributes, and authorization information.
What the official specification says

Read the Core specification for message semantics, Bindings for transport rules, and Profiles Section 4 for the complete browser SSO composition.

Security and interoperability notes

  • A successful browser POST is not proof of identity; validate XML signatures, destination, audience, time limits, subject confirmation, and replay state.
  • All names and values shown by this guide are fictional fixtures. The workbench sends no SAML traffic and does not validate a live IdP.

Workbench support

Reference only

Guided exercises cover selected common flows. This topic remains available as a specification reference.

Official sources and further reading