Google OAuth2 for email (Google Workspace / .edu IMAP & SMTP) #940

Closed
opened 2026-06-18 10:56:09 +02:00 by sleepy · 0 comments
Owner

Overview

Add Google OAuth2 device flow for email, eliminating the need for app passwords. Supports Google Workspace and .edu accounts.

Upstream References

  • PR #237: Add Google OAuth2 for Google Workspace / .edu IMAP & SMTP
  • Upstream commit: 270b857 feat(email): add Google OAuth2 for Google Workspace / .edu IMAP & SMTP (#237)
  • Local paths: ../odysseus_upstream/routes/device_flow.py, ../odysseus_upstream/routes/auth_routes.py

Key Components

  • Device flow auth scaffolding in routes/device_flow.py (DeviceFlowStart, DeviceFlowPoll, PendingDeviceFlowStore)
  • Owner boundary enforcement on MCP email tools
  • Settings integration for OAuth credential storage

Implementation

  1. Port routes/device_flow.py device-flow infrastructure
  2. Add Google OAuth2 provider to email settings
  3. Port owner boundary enforcement on email MCP tools
  4. Add relevant UI for device-flow consent screen

Priority

Medium — quality-of-life improvement for Gmail users.

## Overview Add Google OAuth2 device flow for email, eliminating the need for app passwords. Supports Google Workspace and .edu accounts. ## Upstream References - **PR #237**: Add Google OAuth2 for Google Workspace / .edu IMAP & SMTP - **Upstream commit**: `270b857 feat(email): add Google OAuth2 for Google Workspace / .edu IMAP & SMTP (#237)` - **Local paths**: `../odysseus_upstream/routes/device_flow.py`, `../odysseus_upstream/routes/auth_routes.py` ## Key Components - Device flow auth scaffolding in `routes/device_flow.py` (`DeviceFlowStart`, `DeviceFlowPoll`, `PendingDeviceFlowStore`) - Owner boundary enforcement on MCP email tools - Settings integration for OAuth credential storage ## Implementation 1. Port `routes/device_flow.py` device-flow infrastructure 2. Add Google OAuth2 provider to email settings 3. Port owner boundary enforcement on email MCP tools 4. Add relevant UI for device-flow consent screen ## Priority Medium — quality-of-life improvement for Gmail users.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sleepy/odysseus#940
No description provided.