mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 14:34:17 +02:00
* Enhance OAuth Proxy error responses with branded HTML pages OAuth Proxy authentication errors now show styled HTML error pages in browsers instead of raw JSON, with content negotiation for API clients. Enhanced error messages explain common causes (ephemeral storage, server restarts) and provide clear remediation steps. Changes: - Created enhanced authorization handler that extends SDK's AuthorizationHandler - Created enhanced auth middleware that extends SDK's RequireAuthMiddleware - HTML error pages use server branding (icon, name) from FastMCP instance - Added comprehensive troubleshooting section to OAuth Proxy docs - Added FAQ entry linking to detailed troubleshooting * Add comprehensive tests for enhanced OAuth error responses Tests cover: - HTML error pages for browser requests with server branding - Enhanced JSON responses with registration endpoint hints - Content negotiation between HTML and JSON - Enhanced middleware error messages for invalid_token - WWW-Authenticate header format consistency with SDK * Update language for new storage defaults * update docs * Update tests for simplified error messages * Clean up messages |
||
|---|---|---|
| .. | ||
| providers | ||
| __init__.py | ||
| test_auth_provider.py | ||
| test_enhanced_error_responses.py | ||
| test_jwt_issuer.py | ||
| test_jwt_provider.py | ||
| test_oauth_consent_flow.py | ||
| test_oauth_mounting.py | ||
| test_oauth_proxy.py | ||
| test_oauth_proxy_redirect_validation.py | ||
| test_oauth_proxy_storage.py | ||
| test_oidc_proxy.py | ||
| test_redirect_validation.py | ||
| test_remote_auth_provider.py | ||
| test_static_token_verifier.py | ||