File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
tests/server/mcpserver/auth Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -303,32 +303,6 @@ async def auth_code(
303303
304304
305305class TestAuthEndpoints :
306- @pytest .mark .anyio
307- async def test_metadata_endpoint_with_client_id_metadata_document_supported (self ):
308- """Test metadata endpoint when client_id_metadata_document_supported is enabled."""
309- mock_provider = MockOAuthProvider ()
310- auth_routes = create_auth_routes (
311- mock_provider ,
312- AnyHttpUrl ("https://auth.example.com" ),
313- AnyHttpUrl ("https://docs.example.com" ),
314- client_registration_options = ClientRegistrationOptions (
315- enabled = True ,
316- valid_scopes = ["read" , "write" ],
317- client_id_metadata_document_supported = True ,
318- ),
319- revocation_options = RevocationOptions (enabled = True ),
320- )
321- app = Starlette (routes = auth_routes )
322-
323- async with httpx .AsyncClient (
324- transport = httpx .ASGITransport (app = app ), base_url = "https://mcptest.com"
325- ) as client :
326- response = await client .get ("/.well-known/oauth-authorization-server" )
327- assert response .status_code == 200
328-
329- metadata = response .json ()
330- assert metadata ["client_id_metadata_document_supported" ] is True
331-
332306 @pytest .mark .anyio
333307 async def test_metadata_endpoint (self , test_client : httpx .AsyncClient ):
334308 """Test the OAuth 2.0 metadata endpoint."""
You can’t perform that action at this time.
0 commit comments