Skip to content
IT glossary
SecurityUpdated December 3, 2026

SAML

SAML 2.0 lets an app rely on another system to verify who is signing in. That’s how employees can use a company account to access compatible apps without a separate password for each one.

Also known as: SAML 2.0

What SAML does

SAML stands for Security Assertion Markup Language. It’s an XML-based standard best known for enterprise single sign-on (SSO). The identity provider (IdP) authenticates the user, while the service provider (SP) is the application the user wants to open. The application trusts a statement from the IdP rather than asking for the user’s corporate password. It still decides what the user can do after signing in.

Follow a browser sign-in

Suppose an employee opens an expense app and doesn’t have an app session. In an SP-initiated flow, the app sends the browser to the company’s IdP with an AuthnRequest. If the employee already has a valid IdP session, they may not see another login prompt. Otherwise, the IdP authenticates them according to company policy.

The IdP returns a SAMLResponse containing an assertion, an XML statement about the user. It identifies the user and can include attributes such as department or group membership. It also carries conditions that limit where and when the assertion can be accepted. In a common setup, the browser submits the response by HTTP POST to the app’s Assertion Consumer Service (ACS) endpoint. After validation, the app can match the user to a local account and issue its own session cookie.

What the app needs to check

The integration is configured ahead of time. SAML metadata typically describes each party’s entity ID, endpoints, and relevant public certificates. When the app processes a response, it verifies the required XML signature on the response and/or assertion using configured trust information. It also checks who issued it, whether it’s intended for this app and endpoint, and whether it’s still valid. In an SP-initiated flow, the app ties the response to its original request and must prevent an assertion from being accepted again.

These checks also explain why the company login page can report success while the app still rejects the sign-in. A stale signing certificate, a mismatched audience, or clocks that disagree can all cause validation to fail. Signing and encryption solve different problems: a signature lets the app verify origin and integrity, but doesn’t make the contents private.

How it comes up in interviews

Be ready to explain where login ends and authorization begins. For example, a trusted finance group attribute may help an expense app assign a reviewer role, but the app’s access policy determines who can approve an expense. Another common question is whether OAuth 2.0 replaces SAML. OAuth 2.0 delegates access to resources; OpenID Connect adds a sign-in layer on top of it and is the more direct comparison for SSO.