Security Assertion Markup Language
SAML is a standardized, XML-based way for a trusted identity system to tell an external application that a user has signed in and is who they claim to be. It lets people use one login to access multiple applications, so those applications do not each have to verify the user's credentials directly. SAML is most commonly used to enable web-based single sign-on between organizations and their service providers.
SAML is an XML-based framework, standardized by OASIS (SAML 2.0 being the widely deployed version), for exchanging security information between an identity provider (IdP) and a service provider (SP). Its central artifact is the SAML assertion, an XML document conveying statements, typically authentication, attribute, and authorization decision statements, that an SP relies on to make access-control decisions. In a typical web SSO deployment, the IdP authenticates the principal and issues a signed assertion asserting that authentication occurred; the SP validates the assertion and establishes a security context for the user. Assertions are typically digitally signed to ensure integrity and authenticity, though signing is distinct from encryption, and message confidentiality depends on the profile and transport used. The precise bindings, profiles, and trust configuration vary by deployment; SAML addresses federated authentication and assertion exchange, while fine-grained runtime authorization and identity lifecycle management are generally handled by other mechanisms.
Why it matters
SAML solved a foundational problem in federated identity: allowing users to authenticate once with a trusted identity provider (IdP) and then access multiple external service providers (SPs) without each application independently verifying credentials. This reduces credential sprawl, centralizes authentication policy, and gives organizations a single point at which to enforce and audit sign-in. For enterprises integrating with SaaS applications and cross-organizational partners, SAML 2.0 remains one of the most widely deployed web SSO standards, and much existing enterprise infrastructure depends on it.
Because SPs make access-control decisions based on the statements in a SAML assertion, the integrity and authenticity of that assertion are critical. SAML assertions are typically digitally signed so that an SP can trust that the assertion genuinely originated from the expected IdP and was not altered in transit. Misconfigurations, such as failing to validate signatures correctly, accepting improperly scoped assertions, or mishandling trust configuration, can undermine the security guarantees the standard is meant to provide. It is also important to remember that signing establishes integrity and authenticity, not confidentiality; message confidentiality depends on the profile and transport in use.
Understanding SAML's scope helps teams avoid overextending it. SAML addresses federated authentication and the exchange of assertions between an IdP and an SP. It does not, on its own, deliver fine-grained runtime authorization or identity lifecycle management, which are generally handled by other mechanisms. Treating SAML as a complete access-control solution rather than as a federated authentication and assertion-exchange framework can lead to gaps in governance and enforcement.
Who it's relevant to
Inside SAML
Common questions
Answers to the questions practitioners most commonly ask about SAML.
