Skip to content
Glossary · Identity and security

SAML (Security Assertion Markup Language)

Also called SAML 2.0.

Definition

An open XML standard, SAML 2.0 from OASIS, that lets a company's identity provider vouch for a user when they log in to another app.

Last updated

What it is.

SAML has two sides. The identity provider (IdP) is where the company manages staff accounts, such as Okta, Microsoft Entra ID or Google Workspace. The service provider (SP) is your app. When a user logs in, your app redirects them to the IdP, the IdP checks them and sends back a signed assertion that says who they are.

SAML is the older of the two main ways to do enterprise SSO. OpenID Connect, built on OAuth, is newer and uses JSON. Many large companies still ask for SAML by name.

Why it matters

Supporting SAML is often a hard requirement in enterprise deals. IT teams want to switch off a leaver's access in one place and enforce their own password and MFA rules. Without it, a product can stall in a security review.

In a product build

We use a well-tested SAML library or an auth provider rather than parsing XML ourselves, validate signatures and audience on every assertion, and give each customer tenant its own IdP settings. Account provisioning, often with SCIM, is planned alongside it.

Watch out

Common mistakes.

  1. 01

    Writing your own XML signature checks. Subtle bugs here let attackers forge logins.

  2. 02

    Allowing password login to stay on for SSO users, so leavers keep a back door.

  3. 03

    Matching users by email only, without handling email changes or duplicate accounts.

Sources

Read the official text.

Primary sources this definition is based on.

Tools

Work it out with a tool.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab