mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-26 23:44:17 +02:00
fix: narrow _token_validator with isinstance for ty in AzureProvider.from_b2c (#4007)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
eebdc8c031
commit
008f91d84b
1 changed files with 2 additions and 1 deletions
|
|
@ -351,7 +351,8 @@ class AzureProvider(OAuthProxy):
|
|||
token_issuer=token_issuer,
|
||||
**kwargs,
|
||||
)
|
||||
provider._token_validator.issuer = token_issuer # type: ignore[union-attr]
|
||||
if isinstance(provider._token_validator, JWTVerifier):
|
||||
provider._token_validator.issuer = token_issuer
|
||||
provider._obo_supported = False
|
||||
return provider
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue