About this Project
Implemented the complete Google OAuth2 authorization code flow from scratch in Django without using any third-party packages like django-allauth Built the full OAuth2 pipeline: generating the authorization URL, redirecting users to Google consent screen, handling the callback, and exchanging the authorization code for access tokens Created auth-guarded views that restrict access to authenticated users only and redirect unauthenticated requests back to login Secured all authentication endpoints with CSRF protection to prevent cross-site request forgery attacks Implemented secure session management to persist user login state after successful token exchange Validated token responses from Google before granting access to ensure only legitimate users proceed Structured the codebase cleanly so the OAuth2 flow can be reused or extended in any Django project