Definition:
SAML is an XML-based security standard that enables secure single sign-on (SSO) and identity federation between different organizations. It allows users to authenticate once with an Identity Provider (IdP) and then access multiple Service Providers (SP) without having to log in again. SAML works by exchanging digitally signed XML documents called βassertionsβ that contain authentication and authorization information.
Key Properties:
- Single Sign-On (SSO): One login for multiple services
- Identity Federation: Share identity across organizations
- XML-based: Structured, standardized format
- Secure: Digital signatures and encryption
- Cross-platform: Works across different systems
Core Components:
- Identity Provider (IdP): Authenticates users (e.g., corporate login)
- Service Provider (SP): Provides services (e.g., cloud apps)
- Assertions: XML documents with user information
- SAML Request/Response: Messages exchanged between IdP and SP
Example:
Company employees need to access multiple cloud services (Gmail, Salesforce, Slack) without logging into each one separately.
Employee workflow:
1. π Log into company portal (IdP) β Enter corporate credentials ONCE
2. β
Click Gmail β Automatically logged in
3. β
Click Salesforce β Automatically logged in
4. β
Click Slack β Automatically logged in
5. β
Click Office 365 β Automatically logged in
Benefits:
β
Single login experience
β
Centralized identity management
β
Enhanced security
β
Reduced IT overhead