fix: add OAuth 2.0 discovery endpoint for Claude Code#44
Open
Loule95450 wants to merge 1 commit into
Open
Conversation
bolinocroustibat
requested changes
Mar 25, 2026
| await send({"type": "http.response.body", "body": body}) | ||
| return | ||
|
|
||
| # OAuth 2.0 discovery endpoint (for Claude Code HTTP transport) |
Collaborator
There was a problem hiding this comment.
This sounds a bit verbose and not very agnostic for a specific code tool, is this the recommended solution? Do we have any documentation on that?
Collaborator
|
We installed it with Claude using the Claude Code command Can you give more info about how to reproduce? |
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
Fixes #26 - Add OAuth 2.0 Authorization Server Metadata endpoint.
Problem
Claude Code HTTP transport performs OAuth discovery by hitting:
The production server returns 404, causing Claude Code to fail.
Solution
Added
/.well-known/oauth-authorization-serverendpoint returning valid OAuth 2.0 Authorization Server Metadata (RFC 8414).References:
Fixes #26