Repository navigation
Add manual callback input to MCP OAuth login - #44629
Merged
copyberry[bot] merged 1 commit intoSep 10, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Allow MCP authentication to complete when the browser cannot reach the callback page by accepting the full redirect URL copied from its address bar. ## What changed - Add `codex mcp login--no-browser` to print the authorization URL and accept a pasted callback without launching a browser. HTTP callbacks remain supported while waiting for input. - Validate pasted redirect URLs and OAuth responses before exchanging tokens, hide terminal input, bound input size, and avoid echoing callback values in diagnostics. - Preserve manual input across discovered-scope retries and support cancellation during callback input and token exchange. ## Testing Add unit and CLI integration tests for callback validation, bounded input, credential storage, HTTP callback completion with stdin open, scope retries, and cancellation during token exchange. GitOrigin-RevId: 16ea9c3221f72d93e6e3e5acdc6b9465293a0a65
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/16ea9c3221f72d93e6e3e5acdc6b9465293a0a65
branch
from
September 10, 2026 19:52
00cc867 to
f8ab573
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/16ea9c3221f72d93e6e3e5acdc6b9465293a0a65
branch
September 10, 2026 19:52
muqiao215
temporarily deployed
to
issue-triage
September 10, 2026 20:06 — with
GitHub Actions
Inactive
muqiao215
temporarily deployed
to
issue-triage
September 10, 2026 20:06 — with
GitHub Actions
Inactive
muqiao215
temporarily deployed
to
issue-triage
September 10, 2026 20:06 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add manual callback input to MCP OAuth login
Why
Allow MCP authentication to complete when the browser cannot reach the callback page by accepting the full redirect URL copied from its address bar.
What changed
codex mcp login --no-browser to print the authorization URL and accept a pasted callback without launching a browser. HTTP callbacks remain supported while waiting for input.Testing
Add unit and CLI integration tests for callback validation, bounded input, credential storage, HTTP callback completion with stdin open, scope retries, and cancellation during token exchange.