Identity and access SAML 2.0 4 min read

What is SAML?

A company app receives an XML response in your browser after you sign in with your work account. How does the app know the response really came from the company identity provider and was meant for this app?

  1. The identity provider issues an assertion

    SAML (Security Assertion Markup Language) is a standard for exchanging security information between an identity provider (IdP) and a service provider (SP). After authenticating you, the IdP creates an assertion containing claims about the sign-in.

    In a common web SSO flow, the browser carries the SAML response from the IdP to the SP’s assertion consumer service (ACS). The browser transports the message; it does not make the message trustworthy.

    A service provider redirects a user to an identity provider. After authentication, the identity provider sends a SAML response through the browser to the service provider's assertion consumer endpoint.

    The browser carries the response between systems; the service provider validates it.

    In short The IdP asserts a sign-in; the SP is responsible for validating it.

  2. The service provider checks the claim

    The SP checks the response or assertion signature using keys it trusts for that IdP. It also checks the issuer, audience, recipient, validity window, and—in a request-initiated flow—that the response matches the request it sent.

    Only after these checks pass should the SP map the subject to a local account and create its own application session.

    In short A valid signature matters only with the right issuer, audience, recipient, and time.

  3. Claims inform sign-in; they don’t grant every permission

    An assertion may say who authenticated, when it happened, and include attributes such as a name or group membership. The application maps those claims to its own account and policy.

    A group claim might inform a role assignment, but the app still needs to authorize each action and resource.

    In short SAML carries identity claims; the application still enforces access.

What SAML doesn’t guarantee

SAML doesn’t make an assertion safe just because it is XML or signed. Trust depends on correct signature and key handling, strict audience and recipient checks, safe parsing, and a sound account-mapping policy.

A SAML sign-in also doesn’t automatically end every app session when the user logs out; single logout is a separate protocol capability with its own deployment considerations.

Keep this

A SAML assertion is a signed claim to validate, not a login command to trust blindly.

Validate the assertion’s signature, issuer, audience, recipient, request binding, and time conditions before using its identity claims to start a session.
Issuer
The service provider checks the configured identity provider.
Signature
The assertion or response must validate against trusted keys.
Audience
The assertion must be meant for this service provider.
Time
Conditions and validity times must still be acceptable.

Questions worth carrying

Does SAML itself store the user’s password?

No. The identity provider authenticates the user. The service provider receives an assertion about that authentication and validates it according to its configuration.

Is a signed SAML response automatically safe to accept?

No. The service provider must verify the signature with trusted keys and check that the assertion is intended for it, is current, and matches the expected request and recipient.

Sources

Last reviewed 20 November 2026.

Next byte · Authentication protocols What is LDAP authentication?