fastmcp/tests/server/http
Jeremiah Lowin b98b080c98 Implement TokenVerifier protocol for mcp-python-sdk compatibility
Fixes breaking changes from mcp-python-sdk PR #982 which updated
BearerAuthBackend to use TokenVerifier protocol instead of OAuth providers.

Changes:
- Add verify_token() method to BearerAuthProvider implementing TokenVerifier protocol
- Add verify_token() method to InMemoryOAuthProvider implementing TokenVerifier protocol
- Update BearerAuthBackend usage in setup_auth_middleware_and_routes() to pass TokenVerifier
- Add comprehensive unit tests for TokenVerifier implementations
- Add integration tests for BearerAuthBackend with TokenVerifier
- Add tests for HTTP auth setup functions

All existing functionality preserved with full backwards compatibility.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-26 15:08:31 -04:00
..
__init__.py clean up test inits 2025-05-31 19:32:08 -04:00
test_auth_setup.py Implement TokenVerifier protocol for mcp-python-sdk compatibility 2025-06-26 15:08:31 -04:00
test_bearer_auth_backend.py Implement TokenVerifier protocol for mcp-python-sdk compatibility 2025-06-26 15:08:31 -04:00
test_custom_routes.py Update docs and test 2025-06-20 13:06:48 -04:00
test_http_dependencies.py Add "http" as an alias for streamable-http 2025-06-22 18:55:07 -04:00
test_http_middleware.py Add "http" as an alias for streamable-http 2025-06-22 18:55:07 -04:00