Skip to content

Commit a507cec

Browse files
committed
Ensure scopes are properly extracted
1 parent 9724ad1 commit a507cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/client/auth/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ async def async_auth_flow(self, request: httpx.Request) -> AsyncGenerator[httpx.
506506

507507
# Step 3: Apply scope selection strategy
508508
self.context.client_metadata.scope = get_client_metadata_scopes(
509-
www_auth_resource_metadata_url,
509+
extract_scope_from_www_auth(response),
510510
self.context.protected_resource_metadata,
511511
self.context.oauth_metadata,
512512
)

0 commit comments

Comments
 (0)