OAuth Cheat Sheet
This CS will handle concepts related to using OAuth in different ways and methods.
Table of Contents
- Terminologies - Getting Started
- Access Tokens
- Refresh Tokens
- Tokens TTL
- Managing Tokens
- Redirect URI
- Security Protective Measures
- Use Cases
Terminologies - Getting Started
Crucial terminologies required for the reader in order to properly grasp the concepts discussed.
Access Tokens
Explain in brief access tokens and implementations best practices
Refresh Tokens
Explain in brief refresh tokens and implementations best practices
Tokens TTL
Time to live recommendation and the need for this feature.
Managing Tokens
Best practices for managing tokens for client and authorization services
Redirect URI
Implementing redirect URI in a secure and safe manner
Security Protective Measures
Client Credentials Protection
Implement client_id
and client_secret
CSRF Protection
Implement state
parameter
Referer Header Leaks Protection
How to avoid leaking the authorization code through the Referer
Header
Token Logging Protection
How to protect against logging the tokens in middlewares and server logs
Authorization Server Mix-Up Protection
How to validate and target the proper authorization server
PKCE Considerations
// Can be injected in the use cases as well.