René's URL Explorer Experiment


Title: Add AuthSettings.validate_token_resource to check a bearer token's resource by maxisbey · Pull Request #3447 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Add AuthSettings.validate_token_resource to check a bearer token's resource by maxisbey · Pull Request #3447 · modelcontextprotocol/python-sdk

X Title: Add AuthSettings.validate_token_resource to check a bearer token's resource by maxisbey · Pull Request #3447 · modelcontextprotocol/python-sdk

Description: Adds an opt-in AuthSettings.validate_token_resource. When set, the bearer gate only accepts a token that the TokenVerifier reports as issued for resource_server_url (via AccessToken.resource); a token reporting another resource, or none, gets the same 401 as an unrecognized token. Leaving it unset on a resource server emits an MCPDeprecationWarning and behaves as off; 3.0 makes it the default there. Motivation and Context The resource-server gate checks scopes and expiry but has never compared the token's RFC 8707 resource indicator with the server's own identifier; the interaction suite records this as the hosting:auth:aud-validation divergence. In practice that comparison was left to each TokenVerifier, without the docs or the protocol docstring saying so. This does two things: Documents the contract. TokenVerifier.verify_token and docs/run/authorization.md now say to put the token's audience in AccessToken.resource, and that otherwise confirming the token was issued for this server is the verifier's job. Adds the option for deployments whose authorization server binds tokens to the resource the client requested (which is what MCP clients send). It isn't enforced by default because AccessToken.resource gets populated in lots of ways today (IdP-specific audience identifiers, for instance), and doing so unconditionally would reject valid tokens in those setups; instead an unset value warns so each deployment chooses True or False once. RefreshToken gains an optional resource so providers can carry the binding through the refresh grant. The comparison is URL equality with a trailing slash tolerated; both sides go through AnyHttpUrl so host case and an explicit default port don't matter. It lives in BearerAuthBackend (new keyword-only resource_server_url) so a refused token never reaches get_access_token() or custom routes, and a refusal logs both values at warning level. How Has This Been Tested? Unit table for BearerAuthBackend with and without resource_server_url (match, trailing slash, case/port spelling, parent/child/sibling path, other origin, non-URL value, no resource), plus the AuthSettings validation. Interaction suite: the bearer tests enable the option (other-resource and no-resource tokens are answered 401, a token for this resource is served); the requirement keeps a note that it's off by default. End to end under uvicorn with an introspection-backed verifier over Streamable HTTP: option on, a token for another resource gets 401 and one for this server 200; option off, behaviour unchanged. ./scripts/test, ruff, pyright. Breaking Changes None. Unset behaves as off (with the deprecation warning); BearerAuthBackend(verifier) and existing verifiers behave as before. Setting it to True without a resource_server_url raises at construction. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I am assigned to the linked issue (or it is labeled help wanted, or I'm a maintainer) I have disclosed any AI assistance and can explain the change in my own words I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context The docs tutorials, the bearer_auth / oauth_client_credentials stories, the oauth_server snippet and the simple-auth example set the option explicitly and issue tokens bound to their resource URL; docs/deprecated.md lists the warning. AI Disclaimer

Open Graph Description: Adds an opt-in AuthSettings.validate_token_resource. When set, the bearer gate only accepts a token that the TokenVerifier reports as issued for resource_server_url (via AccessToken.resource); a to...

X Description: Adds an opt-in AuthSettings.validate_token_resource. When set, the bearer gate only accepts a token that the TokenVerifier reports as issued for resource_server_url (via AccessToken.resource); a to...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/3447

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a86878da-98ff-d5ee-9bf3-8e5497178a3e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCE6C:89DD9:119B36:17207C:6B00BB01
html-safe-nonce6c31e484b04350c42e95c296dfecf4426c52d129272e58fa6e4fea8d2043a61e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTZDOjg5REQ5OjExOUIzNjoxNzIwN0M6NkIwMEJCMDEiLCJ2aXNpdG9yX2lkIjoiNDM2MDI2NjA3MzU5ODExNDU2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac15abb3952179938ed4d2d6c7d06b184421c079d6bb45f1448fc001c7df3d5188
hovercard-subject-tagpull_request:4447459768
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/3447/files
twitter:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
og:image:altAdds an opt-in AuthSettings.validate_token_resource. When set, the bearer gate only accepts a token that the TokenVerifier reports as issued for resource_server_url (via AccessToken.resource); a to...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1d07c25977adfc5ff6acb0a962a9bc168c07afbda6fef765f9761c350c2ae4a2
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5429cbfc6aca8c7b9a086a3c8f47400346f38cc9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3447%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3447%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues308 (308)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
bearer-resource-checkhttps://github.com/modelcontextprotocol/python-sdk/tree/bearer-resource-check
Conversation 36 https://github.com/modelcontextprotocol/python-sdk/pull/3447
Commits 5 https://github.com/modelcontextprotocol/python-sdk/pull/3447/commits
Checks 42 https://github.com/modelcontextprotocol/python-sdk/pull/3447/checks
Files changed 26 https://github.com/modelcontextprotocol/python-sdk/pull/3447/files
Add AuthSettings.validate_token_resource to check a bearer token's resource https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#top
Show all changes 5 commits https://github.com/modelcontextprotocol/python-sdk/pull/3447/files
e57f23a Add AuthSettings.validate_token_resource to check a bearer token's re… maxisbey Aug 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3447/commits/e57f23a4a8163ede8a25e41d8fe11345fdb72b72
84c7c13 Carry the token resource through refresh; review follow-ups maxisbey Sep 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3447/commits/84c7c13f73fcaaf4e086f9c287043e7e9e931345
0f89376 Docs: shorter validate_token_resource guidance as a list; spell out t… maxisbey Sep 5, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3447/commits/0f89376f7e6fb8c8a818ae57db66d82af17ff126
ee6cba5 Warn when AuthSettings.validate_token_resource is left unset maxisbey Sep 5, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3447/commits/ee6cba57d9b7dddceadd947a0646f63aba92b221
5e8ba84 Scope the validate_token_resource default note to resource servers; s… maxisbey Sep 5, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3447/commits/5e8ba84e6df1c45e04f57b11981d9a25759195d2
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/3447/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
deprecated.md https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-be353385691d816defea287520145322467ba7ab577ec2496c3676b026666c44
authorization.md https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-47a591f8855d0e6c7629fcfcf8f49471b54858df074ddd11e2f6931dc6de75ca
tutorial001.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f3c8db22d21cdbe2e91efb2ab32e6845db86af22c757f1f65263079273463a85
tutorial002.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-91d0e7206c6e5d8ed295140071047fcd5e385482ca59057f8d7e2c885be698ad
server.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-d6f6fc5668f272edf1a3182b22b034f75510b1902067b23b39cd07c278b1aed5
token_verifier.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-488377b765d8b32e8e5fb73fa28dec511790c79066d63d37b2e18d85ee5ef19d
oauth_server.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0fd30fdc44e2ca13112869868cdaa936542db78c39aafbf1ccb992cfe41c8b00
auth.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f2f595300f009963acd386e038c070bdc7ab4ff532e5f92a11fdd17dba1f0ec1
server.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-c388a5df49687a92e157c2bf1ffc603dd3b4b8f0c38cb80e0707ae72ddedffe4
server_lowlevel.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-aa9b249979d77f298cbcafd888652b050a656ab8378f74b5bd8665726bcd73fb
server.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-094bc81d3930cc9ba26fa7efb8702c043c1e2abd4f2788b50b9f1d2cd07a25a8
server_lowlevel.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-5c648da61339fd84fa0bc4a09bfc66ebf96afce276f5699d832abc81bd04d63c
bearer_auth.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0b11aaab79fc19c511b87711ce27207efba24fbd0226bea59af663715ba0f0ec
provider.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f7e852ad288ea2750460eb8e8ef0d6152216cd97ae505acd5f06146cf866abec
settings.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-ed6123a6a50ac222dad0c2887aa3186d37bbc67f7a2105d4a06320638a75fd25
server.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
server.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-51d6996c0b80b8a5c42e7071451cb9ed3c91b398facebe99b94aad911059190e
test_identity_assertion.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-6eca092800027bcda861006898cf33b9312c05a89d114c26e4f6cfa67571f3bc
_requirements.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
_harness.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
_provider.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-035114ed068ee8041a853e4fdb196c4093d0f72f9aa188b86f619673b08c099d
test_bearer.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-39fa737f86bf4beb1870f6befa727071547fb7bd57257244223688eb618bd79f
test_lifecycle.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-d756478b61108e8553f87789d8a37a2cf6eac3760a38eeb6caf10d51256d8839
test_bearer_auth.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-e9da357dd9e1fbd6287ffd8766f14cfb02020d11144474be22c36805c6fa6382
test_routes.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-bc60cb989fbbc80ad7d8060a2d4e94eb842ae941dde869cb293a9bd94c452ba9
test_settings.py https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-fd7f1a9ef581afff72cf31794ca2fe95bdff17d9c22442c09945b7d22b088d95
docs/deprecated.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-be353385691d816defea287520145322467ba7ab577ec2496c3676b026666c44
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/docs/deprecated.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-be353385691d816defea287520145322467ba7ab577ec2496c3676b026666c44
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-be353385691d816defea287520145322467ba7ab577ec2496c3676b026666c44
docs/run/authorization.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-47a591f8855d0e6c7629fcfcf8f49471b54858df074ddd11e2f6931dc6de75ca
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/docs/run/authorization.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-47a591f8855d0e6c7629fcfcf8f49471b54858df074ddd11e2f6931dc6de75ca
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-47a591f8855d0e6c7629fcfcf8f49471b54858df074ddd11e2f6931dc6de75ca
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-47a591f8855d0e6c7629fcfcf8f49471b54858df074ddd11e2f6931dc6de75ca
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-47a591f8855d0e6c7629fcfcf8f49471b54858df074ddd11e2f6931dc6de75ca
docs_src/authorization/tutorial001.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f3c8db22d21cdbe2e91efb2ab32e6845db86af22c757f1f65263079273463a85
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/docs_src/authorization/tutorial001.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f3c8db22d21cdbe2e91efb2ab32e6845db86af22c757f1f65263079273463a85
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f3c8db22d21cdbe2e91efb2ab32e6845db86af22c757f1f65263079273463a85
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f3c8db22d21cdbe2e91efb2ab32e6845db86af22c757f1f65263079273463a85
docs_src/authorization/tutorial002.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-91d0e7206c6e5d8ed295140071047fcd5e385482ca59057f8d7e2c885be698ad
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/docs_src/authorization/tutorial002.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-91d0e7206c6e5d8ed295140071047fcd5e385482ca59057f8d7e2c885be698ad
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-91d0e7206c6e5d8ed295140071047fcd5e385482ca59057f8d7e2c885be698ad
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-91d0e7206c6e5d8ed295140071047fcd5e385482ca59057f8d7e2c885be698ad
examples/servers/simple-auth/mcp_simple_auth/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-d6f6fc5668f272edf1a3182b22b034f75510b1902067b23b39cd07c278b1aed5
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/examples/servers/simple-auth/mcp_simple_auth/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-d6f6fc5668f272edf1a3182b22b034f75510b1902067b23b39cd07c278b1aed5
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-d6f6fc5668f272edf1a3182b22b034f75510b1902067b23b39cd07c278b1aed5
examples/servers/simple-auth/mcp_simple_auth/token_verifier.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-488377b765d8b32e8e5fb73fa28dec511790c79066d63d37b2e18d85ee5ef19d
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/examples/servers/simple-auth/mcp_simple_auth/token_verifier.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-488377b765d8b32e8e5fb73fa28dec511790c79066d63d37b2e18d85ee5ef19d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-488377b765d8b32e8e5fb73fa28dec511790c79066d63d37b2e18d85ee5ef19d
examples/snippets/servers/oauth_server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0fd30fdc44e2ca13112869868cdaa936542db78c39aafbf1ccb992cfe41c8b00
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/examples/snippets/servers/oauth_server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0fd30fdc44e2ca13112869868cdaa936542db78c39aafbf1ccb992cfe41c8b00
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0fd30fdc44e2ca13112869868cdaa936542db78c39aafbf1ccb992cfe41c8b00
examples/stories/_shared/auth.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f2f595300f009963acd386e038c070bdc7ab4ff532e5f92a11fdd17dba1f0ec1
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/examples/stories/_shared/auth.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f2f595300f009963acd386e038c070bdc7ab4ff532e5f92a11fdd17dba1f0ec1
examples/stories/bearer_auth/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-c388a5df49687a92e157c2bf1ffc603dd3b4b8f0c38cb80e0707ae72ddedffe4
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/examples/stories/bearer_auth/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-c388a5df49687a92e157c2bf1ffc603dd3b4b8f0c38cb80e0707ae72ddedffe4
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-c388a5df49687a92e157c2bf1ffc603dd3b4b8f0c38cb80e0707ae72ddedffe4
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-c388a5df49687a92e157c2bf1ffc603dd3b4b8f0c38cb80e0707ae72ddedffe4
examples/stories/bearer_auth/server_lowlevel.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-aa9b249979d77f298cbcafd888652b050a656ab8378f74b5bd8665726bcd73fb
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/examples/stories/bearer_auth/server_lowlevel.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-aa9b249979d77f298cbcafd888652b050a656ab8378f74b5bd8665726bcd73fb
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-aa9b249979d77f298cbcafd888652b050a656ab8378f74b5bd8665726bcd73fb
examples/stories/oauth_client_credentials/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-094bc81d3930cc9ba26fa7efb8702c043c1e2abd4f2788b50b9f1d2cd07a25a8
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/examples/stories/oauth_client_credentials/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-094bc81d3930cc9ba26fa7efb8702c043c1e2abd4f2788b50b9f1d2cd07a25a8
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-094bc81d3930cc9ba26fa7efb8702c043c1e2abd4f2788b50b9f1d2cd07a25a8
examples/stories/oauth_client_credentials/server_lowlevel.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-5c648da61339fd84fa0bc4a09bfc66ebf96afce276f5699d832abc81bd04d63c
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/examples/stories/oauth_client_credentials/server_lowlevel.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-5c648da61339fd84fa0bc4a09bfc66ebf96afce276f5699d832abc81bd04d63c
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-5c648da61339fd84fa0bc4a09bfc66ebf96afce276f5699d832abc81bd04d63c
src/mcp/server/auth/middleware/bearer_auth.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0b11aaab79fc19c511b87711ce27207efba24fbd0226bea59af663715ba0f0ec
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/src/mcp/server/auth/middleware/bearer_auth.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0b11aaab79fc19c511b87711ce27207efba24fbd0226bea59af663715ba0f0ec
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0b11aaab79fc19c511b87711ce27207efba24fbd0226bea59af663715ba0f0ec
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0b11aaab79fc19c511b87711ce27207efba24fbd0226bea59af663715ba0f0ec
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-0b11aaab79fc19c511b87711ce27207efba24fbd0226bea59af663715ba0f0ec
src/mcp/server/auth/provider.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f7e852ad288ea2750460eb8e8ef0d6152216cd97ae505acd5f06146cf866abec
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/src/mcp/server/auth/provider.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f7e852ad288ea2750460eb8e8ef0d6152216cd97ae505acd5f06146cf866abec
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f7e852ad288ea2750460eb8e8ef0d6152216cd97ae505acd5f06146cf866abec
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f7e852ad288ea2750460eb8e8ef0d6152216cd97ae505acd5f06146cf866abec
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-f7e852ad288ea2750460eb8e8ef0d6152216cd97ae505acd5f06146cf866abec
src/mcp/server/auth/settings.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-ed6123a6a50ac222dad0c2887aa3186d37bbc67f7a2105d4a06320638a75fd25
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/src/mcp/server/auth/settings.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-ed6123a6a50ac222dad0c2887aa3186d37bbc67f7a2105d4a06320638a75fd25
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-ed6123a6a50ac222dad0c2887aa3186d37bbc67f7a2105d4a06320638a75fd25
src/mcp/server/lowlevel/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/src/mcp/server/lowlevel/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
src/mcp/server/mcpserver/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-51d6996c0b80b8a5c42e7071451cb9ed3c91b398facebe99b94aad911059190e
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/src/mcp/server/mcpserver/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-51d6996c0b80b8a5c42e7071451cb9ed3c91b398facebe99b94aad911059190e
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-51d6996c0b80b8a5c42e7071451cb9ed3c91b398facebe99b94aad911059190e
tests/docs_src/test_identity_assertion.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-6eca092800027bcda861006898cf33b9312c05a89d114c26e4f6cfa67571f3bc
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/tests/docs_src/test_identity_assertion.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-6eca092800027bcda861006898cf33b9312c05a89d114c26e4f6cfa67571f3bc
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-6eca092800027bcda861006898cf33b9312c05a89d114c26e4f6cfa67571f3bc
tests/interaction/_requirements.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
View file https://github.com/modelcontextprotocol/python-sdk/blob/5e8ba84e6df1c45e04f57b11981d9a25759195d2/tests/interaction/_requirements.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3447/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
https://github.com/modelcontextprotocol/python-sdk/pull/3447/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3447/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.