Title: `auth` specification in `ClientSessionGroup` · Issue #1723 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: `auth` specification in `ClientSessionGroup` · Issue #1723 · modelcontextprotocol/python-sdk
X Title: `auth` specification in `ClientSessionGroup` · Issue #1723 · modelcontextprotocol/python-sdk
Description: Description It would be nice for the ClientSessionGroup to be OAuth compatible by allowing us to specify the OAuth httpx.Auth provider when passing in the ServerParameters rather than passing the bearer tokens manually via the headers fi...
Open Graph Description: Description It would be nice for the ClientSessionGroup to be OAuth compatible by allowing us to specify the OAuth httpx.Auth provider when passing in the ServerParameters rather than passing the b...
X Description: Description It would be nice for the ClientSessionGroup to be OAuth compatible by allowing us to specify the OAuth httpx.Auth provider when passing in the ServerParameters rather than passing the b...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/1723
X: @github
Domain: redirect.github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`auth` specification in `ClientSessionGroup`","articleBody":"### Description\n\nIt would be nice for the `ClientSessionGroup` to be OAuth compatible by allowing us to specify the OAuth `httpx.Auth` provider when passing in the `ServerParameters` rather than passing the bearer tokens manually via the `headers` field. This will allow us to do the OAuth token exchange flow straight from the `ClientSessionGroup`.\n\n### References\n\nHere is the singleton `ClientSession` example of an OAuth flow: https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/clients/simple-auth-client/mcp_simple_auth_client/main.py\n\nIt would be nice to have an example of a `ClientSessionGroup` using that same flow.","author":{"url":"https://github.com/erwang01","@type":"Person","name":"erwang01"},"datePublished":"2025-12-04T20:05:12Z","url":"https://github.com/modelcontextprotocol/python-sdk/issues/1723"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:06cf3e08-8b35-fd5f-e267-5bb3a81a2f90 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0E0:AC748:1D93CC3:270BEE2:6B056A33 |
| html-safe-nonce | c0f0a4b85e9849fca2588b4e89dc1114d189237eea29b632cff9b03838e72044 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEUwOkFDNzQ4OjFEOTNDQzM6MjcwQkVFMjo2QjA1NkEzMyIsInZpc2l0b3JfaWQiOiI4OTY5NzQ2NjY0OTc0MDE5MTIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d9812e719bbdc8f50f93ba0a8c3581938779621df62da08f155bfd17db7ea3b7 |
| hovercard-subject-tag | issue:3696328455 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/modelcontextprotocol/python-sdk/1723/issue_layout |
| twitter:image | https://opengraph.githubassets.com/27348dc24f0050e7b1d1ad5d0913ce262c7639a00c5d71977ae863b7e48d5c32/modelcontextprotocol/python-sdk/issues/1723 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/27348dc24f0050e7b1d1ad5d0913ce262c7639a00c5d71977ae863b7e48d5c32/modelcontextprotocol/python-sdk/issues/1723 |
| og:image:alt | Description It would be nice for the ClientSessionGroup to be OAuth compatible by allowing us to specify the OAuth httpx.Auth provider when passing in the ServerParameters rather than passing the b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | erwang01 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1be5cc09efdd4833c24a4ffa71d698e3999fa09071e159fe14c2c08e41c98331 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f6d69234e682c947a48074340e69d45d5901de31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width