mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 21:14:17 +02:00
Apply pre-commit formatting fixes
This commit is contained in:
parent
42460480de
commit
a2f406faa4
2 changed files with 4 additions and 2 deletions
|
|
@ -312,7 +312,7 @@ class BearerAuthProvider(OAuthProvider):
|
|||
# Validate audience if configured
|
||||
if self.audience:
|
||||
aud = claims.get("aud")
|
||||
|
||||
|
||||
# Handle different combinations of audience types
|
||||
if isinstance(self.audience, list):
|
||||
# self.audience is a list - check if any expected audience is present
|
||||
|
|
|
|||
|
|
@ -446,7 +446,9 @@ class TestBearerToken:
|
|||
access_token = await provider.load_access_token(token)
|
||||
assert access_token is not None
|
||||
|
||||
async def test_provider_with_multiple_expected_audiences(self, rsa_key_pair: RSAKeyPair):
|
||||
async def test_provider_with_multiple_expected_audiences(
|
||||
self, rsa_key_pair: RSAKeyPair
|
||||
):
|
||||
"""Test provider configured with multiple expected audiences."""
|
||||
provider = BearerAuthProvider(
|
||||
public_key=rsa_key_pair.public_key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue