I. Overview

%%{init: { 'theme': 'base', 'themeVariables': { 'edgeLabelBackground': '#fff' }}}%%
flowchart LR
    A["Fragmented authentication\nper individual service"] -- "Standardized SSO and\ncross-domain trust federation" --> B["SAML-based\nidentity federation"]
    style A fill:#f9f9f9,stroke:#333,stroke-width:3px
    style B fill:#e1f5fe,stroke:#01579b,stroke-width:3px

Definition: An XML-based open standard protocol for securely exchanging user authentication information in web-based distributed environments.

Features:
( XML-Based ) Represents a user’s identity, attributes, and privileges as an XML-formatted assertion for exchange
( Web SSO Standard ) SAML 2.0 has become the de facto standard for implementing SSO (Single Sign-On) in browser-based environments
( Federated Identity ) Establishes a trust relationship between an IdP and an SP in different security domains, enabling them to share user authentication information
( Industry Standard ) Standardized under the leadership of OASIS (Organization for the Advancement of Structured Information Standards)

II. Mechanism & Components

A. SAML 2.0-Based SSO Flow (SP-Initiated)

sequenceDiagram
    participant User as User
    participant SP as Service Provider (SP)
    participant IdP as Identity Provider (IdP)

    User->>SP: Attempt to access service
    SP->>IdP: Send SAML AuthnRequest
    IdP->>User: Request authentication (ID/PW, MFA)
    User->>IdP: Provide authentication information
    IdP-->>User: Authentication succeeds (SAML assertion issued)
    User-->>SP: SAML Response (includes assertion)
    SP->>SP: Verify assertion, create session
    SP-->>User: Grant service access

B. SAML Message Components

ComponentDescriptionSecurity Value
SAML AssertionAn XML document carrying the user’s identity, attributes, and authentication/authorization informationThe core artifact exchanged for user authentication
SAML AuthorityThe IdP (identity authority) or the SP (service provider)Performs the authentication or authorization role
SAML BindingThe transport mechanism for SAML messages, e.g. HTTP POST, HTTP RedirectDefines the message-delivery channel
SAML MetadataMeta information exchanged to establish trust between IdP and SPSupports interoperability and secure configuration

III. Comparison & Application

ProtocolBest FitWeakness
SAML 2.0Enterprise SSO, legacy and government IdPsXML complexity, heavier payload, no native mobile support
OAuth 2.0 + OIDCAPI access, mobile apps, SPAsRequires careful scope/claims design; not always present in older enterprise IdPs

Default to OIDC for anything greenfield — SAML earns its place only when the identity provider on the other side of the integration (many enterprise IdPs, government and education systems) doesn’t speak OIDC yet. Treat SAML support as a compatibility requirement to satisfy existing IdP relationships, not as a design goal for new systems, since new protocol investment in the identity space has effectively moved to the OAuth/OIDC family.

Last updated 18 Aug 2026, 00:00 UTC. history