feat: update auth#3
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (23)
📝 WalkthroughWalkthroughThis change replaces email/password authentication with Google OAuth sign-in, provisions users and organizations, automatically establishes Google Workspace connections, and updates API routes, web pages, configuration, schema, and documentation accordingly. ChangesGoogle OAuth sign-in
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant Browser
participant API
participant Google
participant AuthService
participant ConnectorService
participant WebApp
Browser->>API: Start Google sign-in
API->>Google: Redirect for authorization
Google->>API: OAuth callback with code and state
API->>Google: Exchange code and fetch profile
API->>AuthService: Authenticate Google profile
API->>ConnectorService: Establish Google connection
API-->>Browser: Set refresh cookie and redirect
Browser->>WebApp: Load callback page
WebApp->>API: Complete sign-in refresh
WebApp-->>Browser: Redirect to dashboard
Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Changes
Documentation