Commit graph

2 commits

Author SHA1 Message Date
zzstoatzz
8ccd2ea9e6 test: update OAuth tests to match MCP implementation behavior
- Remove CORS header assertions as CORSMiddleware handles these at ASGI level
- Simplify OPTIONS test to just verify endpoint responds
- MCP's create_protected_resource_routes already wraps handlers properly
2025-07-22 10:11:18 -05:00
zzstoatzz
e104811d0e fix: add OAuth protected resource metadata endpoint
Implements the missing /.well-known/oauth-protected-resource endpoint
required by the MCP spec for OAuth discovery. Also adds proper
resource_metadata URL to WWW-Authenticate headers for 401 responses.

This fixes OAuth authentication issues with FastMCP Client and Claude
Integration by providing the complete OAuth discovery mechanism.

Closes #972

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-21 11:21:55 -05:00