IAM glossary
What is SAML 2.0?
Security Assertion Markup Language
The XML standard for web single sign-on (2005): the identity provider sends a signed assertion to the application through the browser. Still the backbone of enterprise SSO.
How it works
SAML 2.0 is an XML standard for single sign-on, born in 2005 and still everywhere in enterprises. Two parties trust each other through metadata: the identity provider (IdP) authenticates users, the service provider (SP) is the application.
In the common SP-initiated flow, the app sends the browser to the IdP with an AuthnRequest. The user signs in, the IdP returns a signed SAMLResponse containing an assertion, and the browser posts it to the app’s Assertion Consumer Service URL. The app validates signature, audience and time, then creates a session.
A simple example
An employee opens the travel booking tool. It redirects to the company IdP with a SAMLRequest. Already signed in that morning, the employee is sent back immediately with a SAMLResponse saying “mario.rossi@company.com, department Sales”. The tool lets Mario in and shows the Sales travel policy.
Common mistakes
- Weak XML signature validation, open to signature wrapping.
- Not checking
InResponseTo,AudienceandNotOnOrAfter. - Choosing SAML for a new mobile app or API, where OIDC fits better.