Title: fix: preserve existing refresh_token when server omits it in refresh response by Jah-yee · Pull Request #2274 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: preserve existing refresh_token when server omits it in refresh response by Jah-yee · Pull Request #2274 · modelcontextprotocol/python-sdk
X Title: fix: preserve existing refresh_token when server omits it in refresh response by Jah-yee · Pull Request #2274 · modelcontextprotocol/python-sdk
Description: Per RFC 6749 Section 6, the authorization server MAY issue a new refresh token in the refresh response. If omitted, the client must preserve the existing one. This fix prevents token refresh failures after the first refresh when using OAuth providers that don't return refresh tokens in responses (e.g., Google, Auth0 without rotation, Okta in persistent token mode). Fixes #2270
Open Graph Description: Per RFC 6749 Section 6, the authorization server MAY issue a new refresh token in the refresh response. If omitted, the client must preserve the existing one. This fix prevents token refresh failur...
X Description: Per RFC 6749 Section 6, the authorization server MAY issue a new refresh token in the refresh response. If omitted, the client must preserve the existing one. This fix prevents token refresh failur...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2274
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cea08ebd-f94c-dee7-6873-14538361964b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DAFE:389F43:B205D:EE084:6A5A66E1 |
| html-safe-nonce | 6d8a5867d4b2c1fa103f4e1e0d28697c337db3e066c7830fdf42081ebedd117e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUZFOjM4OUY0MzpCMjA1RDpFRTA4NDo2QTVBNjZFMSIsInZpc2l0b3JfaWQiOiI3NjI0MDYxMjg1NzQwMjA5ODg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 57e20ffbbcda0e6c8df406f9857babb3cf3eeb2948a041f486efab37263d43ec |
| hovercard-subject-tag | pull_request:3385281154 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2274/files |
| twitter:image | https://avatars.githubusercontent.com/u/166608075?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/166608075?s=400&v=4 |
| og:image:alt | Per RFC 6749 Section 6, the authorization server MAY issue a new refresh token in the refresh response. If omitted, the client must preserve the existing one. This fix prevents token refresh failur... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 922bdba685ea48400234d557977f0e32d9adbae6f5125725b4f48cacc6801106 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 03575fc589c0e2692de839d7ca2b3aa5b5179f52 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width