fastmcp/tests
Jeremiah Lowin ba47db9b8c
Fix Azure scope validation (#2269)
* Update docs for required scopes

* add scopes

* Fix Azure scope validation

Azure returns unprefixed scopes in JWT tokens but requires prefixed scopes in authorization requests. The previous implementation incorrectly validated tokens against prefixed scopes, causing "invalid_token" errors.

Simplified AzureProvider to use standard JWTVerifier with unprefixed scopes for validation. Scopes are only prefixed when building the Azure authorization URL via _build_upstream_authorize_url() override.

Closes #2263
2025-10-26 11:41:22 -04:00
..
cli Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
client Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
contrib feat: Add title, annotations and meta to mixin decorators 2025-10-10 14:23:02 +05:30
deprecated feat: introduce fastmcp.json configuration system (#1517) 2025-08-19 16:06:04 -04:00
experimental delete ratio test (#2250) 2025-10-24 19:10:19 -04:00
integration_tests Derive jwt_signing_key from Client Secret, default to Encrypted Disk Store (#2223) 2025-10-24 19:08:58 -04:00
prompts Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
resources Allow direct instantiation of Prompt and Resource classes (#2031) 2025-10-08 21:06:41 -04:00
server Fix Azure scope validation (#2269) 2025-10-26 11:41:22 -04:00
tools Add Pydantic-compatible input validation (#2073) 2025-10-14 11:49:30 -07:00
utilities Add "High Value" Ruff Rules (#2255) 2025-10-26 10:20:31 -04:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Derive jwt_signing_key from Client Secret, default to Encrypted Disk Store (#2223) 2025-10-24 19:08:58 -04:00
test_examples.py Cleanup content conversion 2025-09-06 17:32:33 -05:00
test_mcp_config.py optimize test suite (#1893) 2025-09-22 20:07:04 -04:00