Skip to content

Conversation

@jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Oct 14, 2025

The resource_metadata parameter in WWW-Authenticate header must contain the full URL to the metadata endpoint, formed by inserting /.well-known/oauth-protected-resource between the host and path.

Examples:

This enables clients to discover OAuth metadata for the protected resource.

Fixes #2202

The resource_metadata parameter in WWW-Authenticate header must
contain the full URL to the metadata endpoint, formed by inserting
/.well-known/oauth-protected-resource between the host and path.

Examples:
- Resource: http://localhost:8080
Metadata: http://localhost:8080/.well-known/oauth-protected-resource

- Resource: http://localhost:9090/mcp
Metadata: http://localhost:9090/.well-known/oauth-protected-resource/mcp

This enables clients to discover OAuth metadata for the protected resource.

Fixes #2202
@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.14%. Comparing base (3b5e0a0) to head (0132b18).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2203      +/-   ##
==========================================
+ Coverage   53.06%   53.14%   +0.07%     
==========================================
  Files         222      222              
  Lines       28916    28926      +10     
==========================================
+ Hits        15345    15372      +27     
+ Misses      12431    12410      -21     
- Partials     1140     1144       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jhrozek jhrozek merged commit d4b7b0c into main Oct 15, 2025
28 checks passed
@jhrozek jhrozek deleted the prm_with_path branch October 15, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix RFC 9728 resource_metadata URL construction to handle trailing slashes

4 participants