[Windows][OpenAI Developers] Platform OAuth fails with go-jose cryptographic error, then API-key setup loops on reauthentication

Open 💬 1 comment Opened Jul 22, 2026 by Ours1020

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?

  1. Open Codex Desktop on Windows.
  2. Install or enable OpenAI Developers 1.2.3.
  3. Connect OpenAI Platform and complete authentication.
  4. Observe that the plugin can display Connected.
  5. Run “Create an OpenAI API key to use in this project”.
  6. Authentication is reported as accepted and the tool asks to retry.
  7. Retry the tool call.
  8. The call reports that reauthentication is required.
  9. Reopen Settings: a generic configuration-error banner is shown and the plugin returns to Reconnect.
  10. 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.

View original on GitHub ↗

1 Comment

jmoreno-oai · 28 days ago

Additional repro: I’m seeing the same failure on macOS, so this does not appear to be Windows-only.

Environment

  • macOS 26.6
  • ChatGPT Alpha 26.730.11635 (build 6083)
  • OpenAI Developers plugin 1.2.3
  • OpenAI Platform connector connector_2de447f3f15448ebab48783d7e4f5d81
  • Callback route: /aip/connectors/links/oauth/callback

Observed behavior

The OAuth callback returned HTTP 400 twice, at 2026-07-31T03:44:46.138Z and 2026-07-31T03:45:16.359Z, with the same sanitized error:

OAuth failed: invalid_request - The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. go-jose/go-jose: error in cryptographic primitive

Subsequent API-key picker attempts report oauth_token_endpoint_unauthorized and require reauthentication. Updating/reinstalling from ChatGPT Alpha 26.727.31628 (build 6039) to 26.730.11635 (build 6083) did not change the behavior.

Latest retry (2026-07-31T04:08:50Z)

The Codex API-key setup resource also failed to load on macOS:

Failed to load MCP app: resources/read failed for codex_apps
(internal://openai-platform-codex-api-key-setup)
MCP error -32603: Failed to read resource

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.