fastmcp/tests/server/auth
Jeremiah Lowin 686082a5b5
Add platform-aware OAuth token persistence (#2218)
* Add comprehensive keyring integration tests

Prevents OS keyring pollution during testing by adding a global mock in
conftest.py. Tests verify keyring behavior across platforms and fallback
scenarios without writing to the actual system keyring.

- Add global mock_keyring fixture to tests/conftest.py
- Add TestOAuthProxyKeyring class with 6 keyring-specific tests
- Remove try/except ImportError for keyring (now required dependency)
- Add keyring extra to py-key-value-aio dependency
- Clean up extraneous implementation comments in oauth_proxy.py

* Update OAuth keyring documentation

Update all OAuth-related documentation to reflect keyring-based key management:
- Add version badges to jwt_signing_key, token_encryption_key, and client_storage parameters
- Standardize "Default behavior (`None`):" formatting with backticks
- Ensure consistent messaging about development-only defaults across all docs
- Update oauth-proxy.mdx, oidc-proxy.mdx, http.mdx, storage-backends.mdx, and upgrade-guide.mdx
2025-10-22 20:42:24 -04:00
..
providers Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
__init__.py Add WorkOS and Azure OAuth providers (#1550) 2025-08-20 16:22:03 -04:00
test_auth_provider.py Upgrade to MCP 1.17+ with RFC 9728 compliance (#2122) 2025-10-17 09:29:23 -04:00
test_jwt_issuer.py OAuth proxy issues its own tokens (#2109) 2025-10-17 14:31:53 -04:00
test_jwt_provider.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_oauth_consent_flow.py Support custom server name, icons, and link in OAuth Proxy consent page (#2135) 2025-10-18 11:49:26 -04:00
test_oauth_mounting.py Support mounting OAuth-protected servers under path prefixes (#2119) 2025-10-17 11:44:49 -04:00
test_oauth_proxy.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_oauth_proxy_redirect_validation.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_oauth_proxy_storage.py Add platform-aware OAuth token persistence (#2218) 2025-10-22 20:42:24 -04:00
test_oidc_proxy.py fix: Improve URL handling in OIDCConfiguration (#1850) 2025-09-19 13:11:37 -04:00
test_redirect_validation.py Fix OAuth redirect URI validation for DCR compatibility (#1661) 2025-08-28 15:19:56 -04:00
test_remote_auth_provider.py Support mounting OAuth-protected servers under path prefixes (#2119) 2025-10-17 11:44:49 -04:00
test_static_token_verifier.py Add documentation for get_access_token() dependency function (#1446) 2025-08-11 13:01:44 -04:00