SSO & OAuth
Quick Reference
SSO: Single Sign-On - one login for multiple apps
OAuth 2.0: Authorization framework for delegated access
OpenID Connect: Authentication layer on OAuth 2.0
Clear Definition
SSO allows users to authenticate once and access multiple applications. OAuth 2.0 enables applications to access resources on behalf of users without sharing credentials.
š” Key Insight: OAuth 2.0 is for authorization (what can app do), OpenID Connect adds authentication (who is user).
Core Concepts
OAuth 2.0 Flow
- User authorizes app
- App receives authorization code
- App exchanges code for access token
- App uses token to access resources
OpenID Connect
- Adds authentication to OAuth
- Returns ID token (JWT)
- Standardized user info
Best Practices
- Use HTTPS: Always secure
- State Parameter: Prevent CSRF
- PKCE: For public clients
- Scope Limitation: Request minimal scopes
Quick Reference Summary
SSO: One login for multiple apps.
OAuth 2.0: Authorization framework.
OpenID Connect: Authentication on OAuth.
Key: OAuth for authorization, OpenID Connect for authentication.
Previous Topic: Tokens ā
Next Topic: ACL & Rule Engines ā
Back to: Step 10 Overview | Main Index