Commit Graph

3 Commits

Author SHA1 Message Date
Roberto Musso
c1a8ac7669 test: add TestOAuth suite for Google OAuth routes
6 tests covering the authorize and callback endpoints:
- authorize returns URL + state, 503 when unconfigured
- callback: state mismatch → 401, new user creation, existing OAuth
  link re-login (same user sub), email-match auto-linking to password user

Provider methods (exchange_code, get_userinfo) are mocked via AsyncMock
so tests run without hitting Google APIs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 13:42:11 +02:00
e3c7547c75 Remove unused imports across multiple files to clean up the codebase 2026-03-03 17:21:40 +01:00
480e7ac5bd Step 13 - completed 2026-03-03 15:14:04 +01:00