ใ‚†ใ‚‹ใƒ†ใƒƒใ‚ฏใƒŽใƒผใƒˆ

SAML Specs and Structure

SAML is standardized by OASIS, and SAML 2.0 is the mainstream version. Here is a quick breakdown of the pieces that make SAML work.

๐Ÿ“œ SAML Specifications and Versions

SAML 2.0 is the common choice. It defines message structure, transport methods, and how metadata should be written.

Key Points

  • โœ… SAML 2.0 is the standard; 1.1 is not compatible.
  • โœ… Specs are split by role: Assertion, Protocol, Binding, Metadata, etc.
  • โœ… Bindings like HTTP-Redirect and HTTP-POST are the common transport methods.
  • โœ… Metadata shares IdP/SP endpoints and certificates in XML.

๐Ÿงฉ A Closer Look at Each Part

The SAML 2.0 specs are made of multiple parts. Here is a simple breakdown of what each covers.

Version

  • ๐Ÿ“Œ SAML 2.0 is mainstream; do not mix with 1.1.
  • ๐Ÿ“Œ IdP and SP must agree on the same version.

Assertion

  • ๐Ÿ“ The core XML that states who authenticated, when, and how.
  • ๐Ÿ“ Includes conditions (NotBefore/NotOnOrAfter) and Audience that SP must verify.

Protocol

  • ๐Ÿ“ก Defines the format and flow of Request/Response.
  • ๐Ÿ“ก AuthnRequest and LogoutRequest/Response elements and attributes are specified here.

Binding

  • ๐Ÿšš Rules for transporting messages: HTTP-Redirect, HTTP-POST, Artifact, etc.
  • ๐Ÿšš Covers signatures and compression (e.g., Deflate for Redirect).

Metadata

  • ๐Ÿ“‚ XML format for exchanging IdP/SP endpoints, certificates, and entity IDs.
  • ๐Ÿ“‚ Used for auto-importing settings and reducing configuration mistakes.