Skip to content

Use Codex device authorization for OpenAI connections - #829

Open
czpython wants to merge 1 commit into
mainfrom
codex/dru-85-codex-device-login
Open

czpython wants to merge 1 commit into
mainfrom
codex/dru-85-codex-device-login

Conversation

@czpython

@czpython czpython commented Oct 4, 2026

Copy link
Copy Markdown
Owner

What changed

OpenAI subscription connections now show a short code and the OpenAI verification page in onboarding and Settings. Approval completes automatically, without a failed localhost redirect or a pasted URL. Anthropic keeps its code-paste flow.

The backend follows the device authorization protocol in the pinned Codex 0.158.0 CLI. Redis stores each attempt with its provider, Account, polling interval, and expiry. A lock prevents duplicate exchanges. Completed polls can be retried, and cancellation reports success if approval completed first. Tokens use the existing vault, refresh, and sandbox delivery paths. No database migration or new dependency is required.

The UI and configuration guide explain the ChatGPT device authorization setting.

Fixes DRU-85.

Verification

  • Backend suite: uv run pytest backend/ — 2,283 passed. After the final authentication changes, the four focused provider and identity test files passed all 65 tests.
  • Frontend suite: npm --prefix frontend test — 646 passed. The final onboarding fixture correction also passed its three tests.
  • uv run ruff check backend druks-calls and uv run ruff format --check backend druks-calls passed.
  • Frontend lint and production build passed.

Live OpenAI approval, a real sandbox request with the new grant, and browser visual checks were not run. Provider responses were simulated in the tests.

@mintlify

mintlify Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
druks 🟢 Ready View Preview Oct 4, 2026, 7:49 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

This branch was successfully deployed

1 active deployment
staging - docs — 813df9ef Deployed Oct 4, 2026 by mintlify[bot]
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.

1 participant