SAML explained in plain terms means a standard that lets you sign in once and then open many different applications without typing your password again. The central question is how an application you have never logged into can trust that you are who you claim to be, and the short answer is that it trusts a separate identity provider, which checks your credentials and vouches for you with a signed digital message.
Think of arriving at a conference where the reception desk checks your invitation and gives you a wristband. Every room inside accepts the wristband instead of checking your invitation again. SAML works the same way: the identity provider is the reception desk, the wristband is a signed assertion, and each application is a room that trusts it.
You have almost certainly used SAML without knowing it. Logging into a work email account and then opening the company’s document store, expenses system, and chat tool without further passwords is usually SAML at work, quietly passing your verified identity from one service to the next.
Key takeaways
- SAML is an open standard for exchanging identity information between systems.
- It lets an identity provider verify you once and vouch for you to many applications.
- The trust travels in signed XML messages called assertions.
- It removes the need for every application to store and check your password.
- SAML is mainly used for browser-based single sign-on at work, not for mobile apps.
What SAML is
SAML stands for Security Assertion Markup Language. It is a standard, first published in the early 2000s, that defines how one system can tell another system about a user: who they are, how they proved it, and what they are allowed to do. The standard is maintained by OASIS, an organisation that develops open standards for information systems, and it is built on XML, a format for structured documents.
The standard involves three roles. The user is the person signing in. The identity provider, often shortened to IdP, is the system that checks the user’s credentials, such as a password or a hardware key, and issues assertions about them. The service provider, or SP, is the application the user wants to reach, such as a mail service or a document store, which accepts the identity provider’s word instead of asking for a password itself.
Trust between the identity provider and the service provider is set up in advance. The two sides exchange configuration details, including public keys and web addresses, so each can recognise messages from the other. This one-time setup is what makes every later sign-in possible: the service provider does not need to know the user’s password, only that the message came from an identity provider it already trusts.
Our guide to single sign-on explains the wider idea of signing in once for many services. SAML is one of the main standards that makes that idea work in practice, especially inside companies.
How SAML works
A typical SAML sign-in begins when you try to open an application. The service provider notices you have no session and redirects your browser to the identity provider, together with a request asking it to authenticate you. If you have already signed in to the identity provider, it may recognise you at once; if not, it asks for your credentials.
Once you are verified, the identity provider builds an assertion: a structured XML document stating your identity, the time of the sign-in, how you proved who you are, and often extra details such as your email address or your team. It signs this document digitally, so any tampering would break the signature, and sends it back through your browser to the service provider.
The service provider checks the signature against the public key it received during setup, confirms the assertion is fresh and intended for it, and then opens a session for you. From your point of view, the application simply loads, already signed in. The whole exchange takes a second or two, and your password never travels to the application at all.
There is also a variant in which the sign-in starts at the identity provider, which then sends you to the application with an assertion already prepared. This is common on company portals, where you click an application icon and arrive already authenticated, without ever visiting the application’s own login page.

Comparing SAML with OAuth
| Aspect | SAML | OAuth |
|---|---|---|
| Main purpose | Proving who a user is | Granting access to resources |
| Message format | XML assertions | Tokens, usually JSON |
| Typical use | Workforce single sign-on in a browser | Mobile apps and APIs |
| Sign-in flow | Redirects through the browser | Redirects or direct token exchange |
| Best for | Enterprise web applications | Consumer apps and delegated access |
Where SAML is used
SAML is most common inside organisations. A company runs one identity provider, and its staff use it to reach email, document storage, expenses, human resources, and dozens of other tools. New starters get access to everything through one account, and when someone leaves, disabling that one account closes every door at once.
It is also used between organisations. A university might let its students open a partner library or a research service with their university login, and a supplier might give a customer’s staff access to its ordering system, all without either side sharing passwords. Our guide to two-factor authentication explains the extra check often required alongside SAML sign-in, so a stolen password alone is not enough to get in.
Government and education were early adopters, because they needed federated access across many independent institutions. The same pattern now appears wherever a group of organisations shares services: hospitals, research networks, and companies with many subsidiaries all rely on SAML to keep sign-in simple and centralised.
Strengths and limits
SAML’s greatest strength is centralised control. Passwords live in one place, sign-in policies such as multi-factor authentication are enforced in one place, and access can be revoked in one place. Security teams can see who signed in where, and users deal with a single set of credentials instead of dozens.
It also removes passwords from applications. A service provider never sees your password, so a breach of that application cannot expose credentials that would work elsewhere. This separation of duties is a sound security design, and it is one reason auditors like SAML.
But SAML was designed for the browser, and it shows its age elsewhere. Mobile applications and modern APIs usually prefer OAuth and its companion standard OpenID Connect, which use compact tokens rather than verbose XML documents. SAML can be made to work with mobile apps, but it is not the natural fit.
The setup is also heavier than newer alternatives. Exchanging metadata, certificates, and configuration between an identity provider and each service provider takes care and testing, and a misconfigured assertion can lock users out or, worse, let the wrong person in. The standard is powerful, but it rewards careful implementation and regular review.
SAML checklist
- Use a trusted identity provider and keep its software patched.
- Enforce multi-factor authentication at the identity provider.
- Verify assertion signatures and check expiry times on every sign-in.
- Exchange metadata securely and confirm certificates before trusting a partner.
- Include only the user details each application genuinely needs.
- Use encrypted connections for every step of the sign-in flow.
- Log sign-ins so unusual access can be spotted and investigated.
- Test each new service provider thoroughly before staff rely on it.
- Plan how access is revoked quickly when someone leaves.
Frequently asked questions
What is SAML?
SAML is an open standard that lets an identity provider verify a user once and then vouch for them to many applications. It uses signed XML messages called assertions to carry identity information, so applications can trust a sign-in without ever seeing the user’s password.
How is SAML different from OAuth?
SAML is mainly about authentication, proving who you are, while OAuth is mainly about authorisation, granting an application permission to access something on your behalf. SAML is common in enterprise browser single sign-on; OAuth is common in mobile apps and APIs. They are often used together.
What is an identity provider?
An identity provider is the system that checks your credentials and issues assertions about your identity. It might be a company directory service, a cloud identity platform, or a university login system. Applications trust it because the relationship was set up in advance.
What is a SAML assertion?
An assertion is a signed XML document that states facts about a user: their identity, when they signed in, and how they proved who they are. The service provider checks the signature and the details before opening a session.
Is SAML still used today?
Yes, widely, especially in large organisations, education, and government. Newer standards handle mobile apps and APIs better, but for browser-based workforce single sign-on, SAML remains one of the most common choices.
Can SAML work with multi-factor authentication?
Yes. Multi-factor authentication is enforced by the identity provider, and the assertion can record that it was used. Applications then know the sign-in met the required standard without having to check the second factor themselves.
The bottom line
SAML explained in one line is this: a trusted identity provider checks you once, then vouches for you to every application with a signed message.
It keeps passwords in one place, makes sign-in simpler for users, and gives security teams a single point of control. For browser-based work applications, it remains a solid, proven choice, even as newer standards take over mobile and API sign-in.
This article is general information about how SAML works, not advice about which identity system suits a particular organisation.







