You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/OAUTH_SUPPORT.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ cargo run -p mcp-client-examples --example clients_oauth_client
127
127
6.**Authorization Request**: Build authorization URL with PKCE (S256) and RFC 8707 resource parameter
128
128
7.**Authorization Code Exchange**: After user authorization, exchange code for access token (with resource parameter)
129
129
8.**Token Usage**: Use access token for API calls via `AuthClient` or `AuthorizedHttpClient`
130
-
9.**Token Refresh**: Automatically use refresh token to get new access token when current one expires
130
+
9.**Token Refresh**: Automatically use refresh token to get new access token when current one expires; previously granted scopes are forwarded in the refresh request so providers that require them (e.g. Azure AD v2) work correctly
131
131
10.**Scope Upgrade**: On 403 insufficient_scope, compute scope union and re-authorize with upgraded scopes
132
132
133
133
## Security Considerations
@@ -158,3 +158,4 @@ If you encounter authorization issues, check the following:
158
158
-[RFC 8707: Resource Indicators for OAuth 2.0](https://datatracker.ietf.org/doc/html/rfc8707)
0 commit comments