Course contentsShow
← Security
Lesson 778 of 3,05216. Web Security - Authentication MechanismsFree lesson

SAML Assertions and Claims

Structure of authentication, authorization, and attribute assertions including subjects and conditions.

SAML Assertions and Claims

You'll learn what information SAML assertions carry and how they structure authentication and authorization data.

When a user successfully authenticates through SAML, the Identity Provider (IdP) doesn't just say "yes, they're authenticated." It sends a detailed XML document called an assertion that contains structured information about who the user is, what they can do, and under what conditions.

Three Types of Assertions

SAML assertions come in three flavors, each serving a specific purpose:

Authentication Assertion

This confirms that authentication occurred, when it happened, and how (password, MFA, certificate, etc.). Think of it like a timestamped receipt proving you showed your ID at the door.

Authorization Assertion

This specifies what the user is allowed to do — permissions, roles, or access rights. It's like a visitor badge that says "access to floors 1-3 only."

Attribute Assertion

This carries additional user information (email, department, employee ID, group memberships). These are the claims — name-value pairs describing the user. Think of these as profile details the service provider needs to personalize the user's experience.

Key Components

Every assertion contains:

  • Subject: Who the assertion is about (usually a username or email)
  • Conditions: Time validity window, audience restrictions (which service provider can use this)
  • Statements: The actual authentication/authorization/attribute data

These conditions prevent assertion replay attacks and ensure assertions aren't misused by unintended parties.

Key Takeaway: SAML assertions are structured XML documents containing authentication proof, authorization decisions, and user attributes (claims), bound to a specific subject and protected by time and audience conditions.