fastmcp/tests/auth/providers
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
..
test_bearer.py Add "http" as an alias for streamable-http 2025-06-22 18:55:07 -04:00
test_bearer_env.py Use update env var pattern 2025-06-10 12:03:59 -04:00
test_token_verifier.py Implement TokenVerifier protocol for mcp-python-sdk compatibility 2025-06-26 15:08:31 -04:00