Skip to content

Commit 4d17f24

Browse files
committed
style: apply ruff format to OAuth trailing-slash changes
1 parent 9801940 commit 4d17f24

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/mcp/server/auth/routes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def _metadata_identifier_url(url: AnyHttpUrl) -> str:
6060
return s.rstrip("/")
6161
return s
6262

63+
6364
# SEP-990: leg 2 uses the RFC 7523 jwt-bearer grant; support is advertised as the ID-JAG profile.
6465
ID_JAG_GRANT_PROFILE = "urn:ietf:params:oauth:grant-profile:id-jag"
6566

tests/server/auth/test_protected_resource.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,7 @@ async def test_path_based_identifiers_keep_trailing_slash():
158158
authorization_servers=[AnyHttpUrl("https://as.example.com/realms/foo/")],
159159
)
160160
app = Starlette(routes=routes)
161-
async with httpx2.AsyncClient(
162-
transport=httpx2.ASGITransport(app=app), base_url="https://rs.example.com"
163-
) as client:
161+
async with httpx2.AsyncClient(transport=httpx2.ASGITransport(app=app), base_url="https://rs.example.com") as client:
164162
response = await client.get("/.well-known/oauth-protected-resource/mcp/")
165163
assert response.status_code == 200
166164
body = response.json()

0 commit comments

Comments
 (0)