SAML (Security Assertion Markup Language) is an open standard that enables secure, seamless exchange of authentication and authorisation information between parties, specifically between an Identity Provider (IdP) and a Service Provider (SP). It is commonly used in Single Sign-On (SSO) solutions to facilitate access across multiple applications or services with a single set of credentials.
Key Features of SAML:
- Authentication Assertions: Communicates that a user has been authenticated by the IdP.
- Authorisation Assertions: Shares information about a user's permissions or roles.
- XML-Based Standard: Data is formatted in XML, making it highly structured and interoperable.
SAML Workflow Overview:
- User Requests Access: A user attempts to access a resource at the SP.
- Redirection to IdP: The SP redirects the user to the IdP for authentication.
- Authentication at IdP: The IdP verifies the user's identity and generates a SAML assertion.
- Assertion to SP: The SAML assertion is sent back to the SP, confirming the user's identity.
- Access Granted: The SP grants access based on the assertion.
Benefits of SAML:
- Single Sign-On (SSO): Enables users to log in once and access multiple services.
- Improved Security: Credentials are only shared with the IdP, not the SP.
- Interoperability: Works across different platforms, applications, and systems.
Use Cases:
- Enterprise systems like Google Workspace or Microsoft 365.
- Federated identity management for partners or contractors.
- Cloud-based applications requiring secure, streamlined access.
SAML is a widely adopted standard, particularly in corporate and enterprise environments, for simplifying and securing authentication across diverse systems.