What Is SAML? How SSO Login Works for SaaS Teams

SAML (Security Assertion Markup Language) is an open XML standard for exchanging authentication data between two systems. A user signs in once with an identity provider, which sends a signed SAML assertion to the SaaS app. The app trusts that assertion and grants access without storing a separate password.

Key takeaways
  • SAML is an XML standard, not a product. It moves signed identity claims between an identity provider (IdP) and a service provider (SP).
  • Two XML messages do the work: a SAML Request from the app and a SAML Response carrying the assertion.
  • About two in three enterprise apps sit behind SSO (1Password Access-Trust Gap Report).
  • Signed assertions plus expiry and audience rules are what make SAML safer than shared passwords.
  • SAML turns on login, but removal is a separate process. 48% of former employees still had SaaS access months after leaving (CloudEagle IGA Report 2026).

How does SAML work step by step?

SAML login is a five-step exchange between the user, the IdP and the app. The user never types a SaaS password at any point.

  1. The user opens the app and clicks "Sign in with SSO".

  2. The app generates a SAML Request and redirects the browser to the IdP.

  3. The IdP authenticates the user, usually with MFA, then builds a signed SAML assertion.

  4. The IdP sends a SAML Response back through the browser to the app.

  5. The app validates the signature, expiry and audience, then creates the session.

That is the whole browser SSO flow. No password is stored in the app, which removes one credential from your SaaS attack surface.

What is in a SAML assertion?

A SAML assertion is an XML document with three parts: authentication, attribute and authorization statements. The attribute statement is the one most teams end up tuning.

Common attributes mapped in a SaaS app include email, first name, last name, role and department. Group claims also appear here, often as a list of IdP group IDs the app maps to its own roles.

The response is wrapped in a digital signature. If the signature fails, the login fails. That signature is what lets the app trust the IdP with no shared secret per user.

Tip

Map roles to IdP groups, not individual users. Group-based mapping means one IdP change updates every app that consumes the claim.

What is the difference between SAML and OAuth and OIDC?

SAML is designed for authentication in browser SSO; OAuth 2.0 is an authorization framework for API access; OIDC is an identity layer built on OAuth. All three move identity data, but they solve different jobs.

Standard Format Main job Typical use
SAML 2.0 XML Browser single sign-on Legacy and enterprise SaaS
OAuth 2.0 JSON Delegated API access "Sign in with Google", API tokens
OIDC JSON / JWT Authentication on top of OAuth Modern SaaS and mobile apps

Saml 2.0 remains the default for many enterprise buyers, especially in finance and HR software. Newer products often ship OIDC first and add SAML when enterprise deals demand it.

What do you configure on the IdP and the app?

You need four values exchanged in both directions: the IdP entity ID, the IdP SSO URL, the IdP signing certificate and the app's ACS URL. The SP entity ID usually comes along with the ACS URL.

The ACS URL, or Assertion Consumer Service URL, is the endpoint on the app that receives the SAML Response. A mismatch here is the single most common cause of a "400 Bad Request" during setup.

Keep a per-app record of these values. A simple table works:

Field Example Where it lives
SP entity ID https://app.example.com/saml App config
ACS URL https://app.example.com/saml/acs App config
IdP entity ID https://idp.company.com/metadata IdP metadata
Signing certificate X.509, expires yearly IdP metadata
NameID format Email address Both sides

Certificate expiry is the silent killer. Set a calendar reminder 60 days before the IdP signing certificate rotates.

What are common SAML mistakes in SaaS environments?

The most common mistakes are configuration mismatches, not protocol failures. Almost every broken SAML login traces back to a copy-paste error or a certificate date.

  • ACS URL typo. One wrong path segment breaks every login for that app.
  • Expired signing certificate. Logins fail for all users at once, usually overnight.
  • NameID mismatch. App expects email, IdP sends an opaque ID.
  • Clock skew. Servers more than a few minutes apart reject valid assertions.
  • No break-glass account. A broken IdP locks admins out of the app entirely.
  • SSO without deprovisioning. Removing the IdP account is not the same as removing the app account.

That last point matters most for finance and IT. Disabling a user in the IdP blocks new logins, but it does not always delete the app-side account, license or stored data. Pairing SAML with an offboarding workflow closes that gap.

How does SAML affect access reviews and audit?

SAML proves who signed in, not who should still have the account. Auditors want evidence that access was reviewed and removed, which is a separate control.

For SOX-relevant systems, evidence usually means a dated review, a reviewer name and a record of removals. SAML logs help by showing last login, which is a useful signal for spotting dormant accounts. They do not replace the review itself.

Run reviews on a fixed cadence for systems in scope, and keep the exported evidence. A user access review template speeds up the first cycle. Teams preparing for an audit can use audit-ready access reviews to keep evidence in one place.

The key idea: SAML is authentication, access review is authorization hygiene. You need both.

How should IT and finance act on SAML today?

Treat SAML as the default for every SaaS app that supports it, and as a procurement question for every app that does not. The action list is short and repeatable.

  • Inventory every app and mark which ones support SAML SSO.
  • Turn on SSO for in-scope apps, starting with finance, HR and admin tools.
  • Map roles to IdP groups, not individual users.
  • Record ACS URL, entity ID and certificate expiry per app.
  • Pair SSO with a deprovisioning check at exit.

Finance gains a cleaner license picture when SSO usage ties to active accounts. IT gains one login path and one revocation point. Operations gains fewer helpdesk tickets.

The number to watch: 48% of former employees still had SaaS access months after leaving (CloudEagle IGA Report 2026). SSO alone does not fix that. A recurring access review process does.

Sources

Frequently asked questions

What does SAML stand for?

Security Assertion Markup Language. It is an open XML standard maintained by OASIS for exchanging authentication and authorization data between an identity provider and a service provider.

Is SAML the same as single sign-on?

No. SAML is one protocol that enables SSO. SSO is the user experience of signing in once, and SAML is often the mechanism behind it.

Does SAML store passwords?

No. The identity provider authenticates the user, and the app trusts a signed assertion. The SaaS app never needs a separate password for that user.

What causes a SAML 400 Bad Request error?

Usually a mismatch between the ACS URL configured in the app and the one sent by the identity provider, or an expired signing certificate.

Is SAML still relevant with OIDC available?

Yes. Many enterprise and finance apps still require SAML 2.0, so most IT teams support both SAML and OIDC for the foreseeable future.