Skip to content

Commit 9ed0188

Browse files
committed
remove test logging endpoint
Signed-off-by: Jesse Sanford <108698+jessesanford@users.noreply.github.com>
1 parent 36fa943 commit 9ed0188

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/mcp/server/auth/proxy/routes.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,22 +152,11 @@ async def revoke(self, request: Request) -> Response: # noqa: D401
152152
r = await client.post(str(self.s.upstream_token).rsplit("/", 1)[0] + "/revoke", data=data, timeout=10)
153153
return JSONResponse(r.json(), status_code=r.status_code)
154154

155-
# ------------------------------------------------------------------
156-
# /test-logging – optional demo
157-
# ------------------------------------------------------------------
158-
async def test_logging(self, request: Request) -> Response: # noqa: D401
159-
payload = {
160-
"message": "Enhanced logging test successful!",
161-
"method": request.method,
162-
}
163-
return JSONResponse(payload)
164-
165155
handlers = _ProxyHandlers(s)
166156

167157
return [
168158
Route("/.well-known/oauth-authorization-server", handlers.metadata, methods=["GET"]),
169159
Route("/register", handlers.register, methods=["POST"]),
170160
Route("/authorize", handlers.authorize, methods=["GET"]),
171161
Route("/revoke", handlers.revoke, methods=["POST"]),
172-
Route("/test-logging", handlers.test_logging, methods=["GET", "POST"]),
173162
]

tests/test_proxy_oauth_endpoints.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,6 @@ async def _mock_post(self, url, data=None, timeout=10, **kwargs): # noqa: D401
132132
assert r.json() == {"revoked": True}
133133

134134

135-
@pytest.mark.anyio
136-
async def test_logging_endpoint(client):
137-
r = await client.get("/test-logging")
138-
assert r.status_code == 200
139-
assert r.json()["message"] == "Enhanced logging test successful!"
140-
141-
142135
@pytest.mark.anyio
143136
async def test_token_passthrough(client, monkeypatch, proxy_server):
144137
"""Ensure /token is proxied unchanged and response is returned verbatim."""

0 commit comments

Comments
 (0)