What does SAML do?
Before standards like SAML, every application managed its own logins, so users juggled separate passwords for each one and IT teams managed credentials in many places. SAML solves this by delegating authentication to a single trusted identity provider. The user authenticates once with that provider, which then vouches for the user's identity to each connected application. This is the foundation of federated identity and web-based single sign-on: fewer passwords for users, centralized control for IT, and credentials that are never exposed to every individual app.
SAML is defined by the OASIS SAML specification, maintained by the OASIS standards body, which is the authoritative technical source for the standard. The U.S. National Institute of Standards and Technology also addresses federated authentication in NIST Special Publication 800-63C (Digital Identity Guidelines: Federation and Assertions).
The three parties in a SAML flow
A SAML login involves three parties:
- User — the person trying to access an application.
- Identity provider (IdP) — the trusted service that authenticates the user and issues identity information.
- Service provider (SP) — the application the user is trying to reach, which trusts the identity provider.
The identity provider and service provider establish trust in advance, so the application accepts the identity provider's word that the user is authenticated.
How does SAML work in practice?
In practice, a SAML login works like this:
- The user tries to access an application (the service provider).
- The service provider redirects the user to the identity provider to authenticate.
- The user signs in at the identity provider (which may also require multi-factor authentication).
- The identity provider sends a signed SAML assertion back to the service provider, confirming the user's identity.
- The service provider trusts the assertion and grants access — no additional password required.
These redirects happen quickly in the browser, so the user experiences a single, smooth sign-in.