The SAML API provides endpoints for implementing SAML 2.0 Single Sign-On (SSO) for enterprise authentication. This allows your application to integrate with Identity Providers (IdPs) like Okta, Azure AD, Google Workspace, and others.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/supertokens/supertokens-core/llms.txt
Use this file to discover all available pages before exploring further.
Key Features
- SAML 2.0 Service Provider (SP) implementation
- Multiple SAML client configuration support
- SP-initiated and IdP-initiated login flows
- Automatic IdP metadata parsing
- Request signing support
- Assertion validation and verification
Authentication Flow
SP-Initiated Login
- Create SAML client with IdP metadata using
/recipe/saml/clients - Initiate login with
/recipe/saml/loginto get SSO redirect URL - User authenticates with IdP
- Handle callback with
/recipe/saml/callbackto complete authentication
IdP-Initiated Login
- User initiates login from IdP portal
- IdP sends SAML assertion to your callback endpoint
- Handle callback with
/recipe/saml/callback(if enabled in client config)
Base Path
All SAML endpoints are prefixed with/recipe/saml
Related Endpoints
Clients
Configure and manage SAML client connections
Login
Initiate SAML authentication flow
Callback
Handle SAML assertion callback