Skip to content

Add extensible OAuth providers#1680

Merged
3clyp50 merged 5 commits into
agent0ai:readyfrom
TerminallyLazy:providers-oauth
Jun 1, 2026
Merged

Add extensible OAuth providers#1680
3clyp50 merged 5 commits into
agent0ai:readyfrom
TerminallyLazy:providers-oauth

Conversation

@TerminallyLazy
Copy link
Copy Markdown
Contributor

Summary

  • Refactors _oauth around a provider registry while keeping the existing Codex/ChatGPT flow available through an adapter.
  • Adds GitHub Copilot OAuth with device-code login, model checking, proxy routing, refresh handling, and disconnect support.
  • Adds xAI Grok OAuth with browser PKCE/manual callback handling, model checking, proxy routing, refresh handling, and disconnect support.
  • Updates the _oauth settings UI, model provider metadata, docs, and regression tests for multi-provider operation.

Test plan

  • PYTHONDONTWRITEBYTECODE=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest -p no:cacheprovider tests/test_oauth_github_copilot.py tests/test_oauth_providers.py tests/test_oauth_xai_grok.py tests/test_oauth_static.py -q
  • PYTHONDONTWRITEBYTECODE=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest -p no:cacheprovider tests/test_plugin_scan_prompt.py -q
  • pytest -q attempted locally; blocked during collection in this Homebrew Python 3.14 shell by missing/import-broken repo dependencies such as flask, litellm, simpleeval, httpx, pathspec, git, regex, and pytz.

Gemini OAuth is intentionally not included in this PR.

@3clyp50
Copy link
Copy Markdown
Contributor

3clyp50 commented Jun 1, 2026

I added a commit with:

  • Codex poll_device_login compatibility restored via account_id, while keeping account_label.
  • UI provider cards driven from backend /status metadata instead of a hardcoded provider list.
  • xAI browser callback completion observed from the modal via status polling.
  • Structured usage-plan metadata for Codex, GitHub Copilot, Gemini API OAuth (the only one permitted by TOS), and xAI Grok.
  • Merge conflict resolution against current upstream/ready, including the Codex hardening from recently merged PR Harden Codex OAuth refresh token ownership #1677.

@3clyp50 3clyp50 force-pushed the providers-oauth branch from fed07f0 to 7e243e8 Compare June 1, 2026 00:54
@3clyp50 3clyp50 force-pushed the providers-oauth branch from 8ae5006 to 57bd948 Compare June 1, 2026 12:56
@3clyp50 3clyp50 merged commit a0a6f22 into agent0ai:ready Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants