Skip to content

Commit 29a6b81

Browse files
committed
merge with recent branch
1 parent 5be78af commit 29a6b81

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/client/test_auth.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ async def test_auth_flow_with_valid_tokens(self, oauth_provider, mock_storage, v
659659
except StopAsyncIteration:
660660
pass # Expected
661661

662+
662663
class TestClientCredentialsProvider:
663664
@pytest.mark.anyio
664665
async def test_request_token_success(
@@ -739,6 +740,7 @@ async def test_request_token_success(
739740
assert kwargs["data"]["resource"] == "https://api.example.com/v1/mcp"
740741
assert token_exchange_provider._current_tokens.access_token == oauth_token.access_token
741742

743+
742744
@pytest.mark.parametrize(
743745
(
744746
"issuer_url",
@@ -808,7 +810,12 @@ def test_build_metadata(
808810
"token_endpoint": Is(token_endpoint),
809811
"registration_endpoint": Is(registration_endpoint),
810812
"scopes_supported": ["read", "write", "admin"],
811-
"grant_types_supported": ["authorization_code", "refresh_token"],
813+
"grant_types_supported": [
814+
"authorization_code",
815+
"refresh_token",
816+
"client_credentials",
817+
"token_exchange",
818+
],
812819
"token_endpoint_auth_methods_supported": ["client_secret_post"],
813820
"service_documentation": Is(service_documentation_url),
814821
"revocation_endpoint": Is(revocation_endpoint),

0 commit comments

Comments
 (0)