API Authentication
SDD Classification: L3-Technical
Authority: Engineering Team
Review Cycle: Quarterly
Authentication Flow Overview
JWT Token Structure
Access Token Claims
Token Properties
Authentication Methods
Method 1: Email/Password Login
Method 2: OAuth 2.0 Authorization Code
Step 1: Redirect to AuthorizationMethod 3: Client Credentials (Server-to-Server)
OAuth Scopes
Token Refresh
Access tokens expire after 15 minutes. Use refresh tokens to obtain new access tokens:Automatic Token Refresh Pattern
Token Revocation
Revoke Current Token
Revoke All User Sessions
SSO Integration
Supported Providers
SAML 2.0 Configuration
SAML Service Provider Metadata:Security Best Practices
Token Storage Recommendations
Never store tokens in:
- LocalStorage (XSS vulnerable)
- SessionStorage (XSS vulnerable)
- URL parameters
- Log files
Rate Limiting for Auth Endpoints
Public Key Endpoint
Validate JWT tokens locally using the public key:- Keys rotate every 90 days
- Dual-key overlap for 7 days
- Cache JWKS for maximum 5 minutes
Authentication Errors
Related Documentation
- API Overview - API fundamentals
- Rate Limits - Request limits
- Errors - Error handling guide
- Shield Service - Authentication service
Document Status: Complete Version: 2.0