This course introduces OAuth 2.0 authentication using mock Google providers. Learn OAuth fundamentals, implement authorization code flow, and integrate with your TypeScript/Express pastebin application. Follows an offense-defense approach, demonstrating vulnerabilities before implementing secure solutions.
Overview
Syllabus
- Unit 1: OAuth Fundamentals
- Quiz about OAuth Fundamentals
- Unit 2: Mock Google OAuth Implementation
- Setting Up Multi Provider OAuth Routes
- Implementing OAuth Success Handlers
- Debugging Multi Provider OAuth Implementation
- Unit 3: User Model for OAuth
- Making Password Field Optional
- Adding Email Field to User Model
- Adding Provider Field to User Model
- Unit 4: OAuth State and CSRF
- Implementing OAuth State Generation Security
- Implementing OAuth State Validation Security
- Robust OAuth State Error Handling
- Unit 5: OAuth Error Handling
- Building OAuth Error Infrastructure
- Integrating Error Handling into OAuth Routes