fastmcp/examples/auth
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
..
authkit_dcr Remove redirect path for authkit example (#1938) 2025-09-27 12:01:41 -04:00
aws_oauth Add AWS Cognito OAuth Provider for Enterprise Authentication (#1873) 2025-09-25 11:08:45 -04:00
azure_oauth Fix Azure scope validation (#2269) 2025-10-26 11:41:22 -04:00
github_oauth Docs (#2145) 2025-10-19 20:26:08 -04:00
google_oauth Fix OAuth resource URL handling and WWW-Authenticate header (#1706) 2025-09-02 15:14:05 -04:00
scalekit_oauth Add Scalekit Provider for Enterprise Authentication (#1927) 2025-09-26 16:58:03 -04:00
workos_oauth Add authkit example (#1935) 2025-09-26 18:33:08 -04:00