[Windows][OpenAI Developers] Platform OAuth fails with go-jose cryptographic error, then API-key setup loops on reauthentication
What version of the Codex App are you using?
Microsoft Store package OpenAI.Codex 26.715.8383.0; bundled app-server 0.145.0-alpha.27.
What subscription do you have?
Exact tier omitted because this is a local connector/authentication failure.
What platform is your computer?
Windows 11 25H2, Microsoft Windows NT 10.0.26200.0, x64.
Component
openai-developers plugin 1.2.3, OpenAI Platform connector.
What issue are you seeing?
The OpenAI Platform connection can appear as Connected, but the secure API-key setup cannot use that authenticated state. The flow alternates between “authentication accepted; retry” and “this app connection requires reauthentication”. The Settings UI eventually shows a generic connection-configuration error and returns to Reconnect.
The sanitized Desktop log identifies a concrete OAuth callback failure:
status=400 routePattern=/aip/connectors/links/oauth/callback
OAuth failed: invalid_request ... go-jose/go-jose: error in cryptographic primitive
Subsequent setup attempts repeatedly fail with:
resources/read failed for codex_apps
(internal://openai-platform-codex-api-key-setup)
MCP error -32603: Failed to read resource
No API key was created, and no secret is included in this report.
What steps can reproduce the bug?
- Open Codex Desktop on Windows.
- Install or enable OpenAI Developers
1.2.3. - Connect OpenAI Platform and complete authentication.
- Observe that the plugin can display Connected.
- Run “Create an OpenAI API key to use in this project”.
- Authentication is reported as accepted and the tool asks to retry.
- Retry the tool call.
- The call reports that reauthentication is required.
- Reopen Settings: a generic configuration-error banner is shown and the plugin returns to Reconnect.
- Restart Codex, reconnect and retry; the same sequence occurs.
The separate local destination confirmation succeeds for a Git-ignored .env.local. Calling encrypted key creation directly still fails because the connector is considered unauthenticated.
What is the expected behavior?
A successful OpenAI Platform authentication should remain usable by the target picker and encrypted key-creation tool. If the OAuth callback is rejected, Codex should display the underlying reason and a correlation ID rather than showing a transient Connected state and a generic retry loop.
Additional information
Impact:
- Secure key provisioning through Codex is completely blocked.
- Repeated restarts and reconnections do not help.
- The generic UI error gives no actionable diagnosis.
- End-to-end testing of an OpenAI-backed application is delayed.
Related but different reports:
- openai/codex#25157 and openai/codex#25257 cover a Windows protocol callback being interpreted as an Electron path.
- openai/codex#30978 covers the local destination form being auto-declined.
In this case the destination form succeeds; the callback itself returns HTTP 400 with the go-jose cryptographic error.
1 Comment
Additional repro: I’m seeing the same failure on macOS, so this does not appear to be Windows-only.
Environment
26.730.11635(build6083)1.2.3connector_2de447f3f15448ebab48783d7e4f5d81/aip/connectors/links/oauth/callbackObserved behavior
The OAuth callback returned HTTP 400 twice, at
2026-07-31T03:44:46.138Zand2026-07-31T03:45:16.359Z, with the same sanitized error:Subsequent API-key picker attempts report
oauth_token_endpoint_unauthorizedand require reauthentication. Updating/reinstalling from ChatGPT Alpha26.727.31628(build6039) to26.730.11635(build6083) did not change the behavior.Latest retry (
2026-07-31T04:08:50Z)The Codex API-key setup resource also failed to load on macOS:
After separately approving a local destination, direct encrypted-key creation through the connector still returned
oauth_token_endpoint_unauthorized. No API key or ciphertext was created, and the local destination remained unwritten.Impact
Secure API-key creation through OpenAI Developers is blocked; no key is created.