fix(oauth): publish bare-origin resource per OpenAI Apps SDK docs#74
Open
jfassio wants to merge 1 commit into
Open
fix(oauth): publish bare-origin resource per OpenAI Apps SDK docs#74jfassio wants to merge 1 commit into
resource per OpenAI Apps SDK docs#74jfassio wants to merge 1 commit into
Conversation
OpenAI's Apps SDK auth docs are explicit: "ChatGPT sends this exact value as the `resource` query parameter during OAuth." Their example shows the bare origin (`https://your-mcp.example.com`), not a path- suffixed URL. We were publishing `${origin}/mcp`. RFC 9728 allows either form, but ChatGPT's App Review classifier appears to require the bare-origin shape — every other variant has been rejected with "unsupported OAuth config type" while our metadata otherwise matches every published spec. Single-character change. Mirrors the docs example exactly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
OpenAI's Apps SDK auth docs are explicit:
Their example shows the bare origin:
```json
{ "resource": "https://your-mcp.example.com", ... }
```
We've been publishing `${origin}/mcp` (e.g. `https://mcp.tako.com/mcp\`). RFC 9728 allows either form, but ChatGPT's App Review classifier appears to require the bare-origin shape. Every metadata-shape variant we tried in PR #72 was rejected with the same generic `"unsupported OAuth config type"` while our metadata otherwise matched every published spec. The bare-origin `resource` is the only material difference between our doc and the documented OpenAI example.
Change
`workers/src/oauth/handlers.ts` — one line:
```diff
```
Notes
Test plan
🤖 Generated with Claude Code