René's URL Explorer Experiment


Title: FEAT: token-expiry capture and identity-aware pool key by jahnvi480 · Pull Request #660 · microsoft/mssql-python · GitHub

Open Graph Title: FEAT: token-expiry capture and identity-aware pool key by jahnvi480 · Pull Request #660 · microsoft/mssql-python

X Title: FEAT: token-expiry capture and identity-aware pool key by jahnvi480 · Pull Request #660 · microsoft/mssql-python

Description: Microsoft Python Driver for SQL Server. Contribute to microsoft/mssql-python development by creating an account on GitHub.

Open Graph Description: Work Item / Issue Reference AB#46159 AB#46160 GitHub Issue: #651 GitHub Issue: #659 Summary FEAT: Identity-aware connection pooling The problem The connection pool keyed only on the connect...

X Description: Work Item / Issue Reference AB#46159 AB#46160 GitHub Issue: #651 GitHub Issue: #659 Summary FEAT: Identity-aware connection pooling The problem The connection pool keyed only on the connect...

Opengraph URL: https://github.com/microsoft/mssql-python/pull/660

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:983d0bf0-d37e-a793-adce-0e97ac8daf9f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9DD6:47EDE:19CF614:24E8CBB:6A4F77B8
html-safe-nonce903c2b71f38057d2a52849e50b8b996b8ed21dfc8796a55f2a21b8fd59b73ad0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REQ2OjQ3RURFOjE5Q0Y2MTQ6MjRFOENCQjo2QTRGNzdCOCIsInZpc2l0b3JfaWQiOiI4MzM0NDYzMzg0ODk3NDE5MTkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca217ac83f9172f81db115248729f6d78b8d43160d95a8f65e7b988c7f938062b
hovercard-subject-tagpull_request:3983646109
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/mssql-python/660/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/75c62438ce1735bd1c9a6f5fcee8d2ef9ae310ddf2e5fbeeeeec827501f96282/microsoft/mssql-python/pull/660
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/75c62438ce1735bd1c9a6f5fcee8d2ef9ae310ddf2e5fbeeeeec827501f96282/microsoft/mssql-python/pull/660
og:image:altWork Item / Issue Reference AB#46159 AB#46160 GitHub Issue: #651 GitHub Issue: #659 Summary FEAT: Identity-aware connection pooling The problem The connection pool keyed only on the connect...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejahnvi480
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-cache
go-importgithub.com/microsoft/mssql-python git https://github.com/microsoft/mssql-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id921684538
octolytics-dimension-repository_nwomicrosoft/mssql-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id921684538
octolytics-dimension-repository_network_root_nwomicrosoft/mssql-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/mssql-python/pull/660#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-python%2Fpull%2F660
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-python%2Fpull%2F660
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2Fmssql-python
Reloadhttps://github.com/microsoft/mssql-python/pull/660
Reloadhttps://github.com/microsoft/mssql-python/pull/660
Reloadhttps://github.com/microsoft/mssql-python/pull/660
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
microsoft https://github.com/microsoft
mssql-pythonhttps://github.com/microsoft/mssql-python
Notifications https://github.com/login?return_to=%2Fmicrosoft%2Fmssql-python
Fork 51 https://github.com/login?return_to=%2Fmicrosoft%2Fmssql-python
Star 441 https://github.com/login?return_to=%2Fmicrosoft%2Fmssql-python
Code https://github.com/microsoft/mssql-python
Issues 41 https://github.com/microsoft/mssql-python/issues
Pull requests 27 https://github.com/microsoft/mssql-python/pulls
Discussions https://github.com/microsoft/mssql-python/discussions
Actions https://github.com/microsoft/mssql-python/actions
Projects https://github.com/microsoft/mssql-python/projects
Models https://github.com/microsoft/mssql-python/models
Wiki https://github.com/microsoft/mssql-python/wiki
Security and quality 0 https://github.com/microsoft/mssql-python/security
Insights https://github.com/microsoft/mssql-python/pulse
Code https://github.com/microsoft/mssql-python
Issues https://github.com/microsoft/mssql-python/issues
Pull requests https://github.com/microsoft/mssql-python/pulls
Discussions https://github.com/microsoft/mssql-python/discussions
Actions https://github.com/microsoft/mssql-python/actions
Projects https://github.com/microsoft/mssql-python/projects
Models https://github.com/microsoft/mssql-python/models
Wiki https://github.com/microsoft/mssql-python/wiki
Security and quality https://github.com/microsoft/mssql-python/security
Insights https://github.com/microsoft/mssql-python/pulse
jahnvi480https://github.com/jahnvi480
mainhttps://github.com/microsoft/mssql-python/tree/main
jahnvi/identity-aware-poolinghttps://github.com/microsoft/mssql-python/tree/jahnvi/identity-aware-pooling
Conversationhttps://github.com/microsoft/mssql-python/pull/660
Commits18 (18)https://github.com/microsoft/mssql-python/pull/660/commits
Checkshttps://github.com/microsoft/mssql-python/pull/660/checks
Files changedhttps://github.com/microsoft/mssql-python/pull/660/files
FEAT: token-expiry capture and identity-aware pool keyhttps://github.com/microsoft/mssql-python/pull/660#top
jahnvi480https://github.com/jahnvi480
mainhttps://github.com/microsoft/mssql-python/tree/main
jahnvi/identity-aware-poolinghttps://github.com/microsoft/mssql-python/tree/jahnvi/identity-aware-pooling
https://github.com/jahnvi480
jahnvi480https://github.com/jahnvi480
Jul 3, 2026https://github.com/microsoft/mssql-python/pull/660#issue-4800722459
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
AB#46159https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/46159
AB#46160https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/46160
#651https://github.com/microsoft/mssql-python/issues/651
#659https://github.com/microsoft/mssql-python/issues/659
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
https://github.com/jahnvi480
feat(auth): token-expiry capture and identity-aware pool key (https://github.com/microsoft/mssql-python/pull/660/commits/cd409750185fc6860900ae690808e226871759a3
#651https://github.com/microsoft/mssql-python/issues/651
,https://github.com/microsoft/mssql-python/pull/660/commits/cd409750185fc6860900ae690808e226871759a3
#659https://github.com/microsoft/mssql-python/issues/659
cd40975https://github.com/microsoft/mssql-python/pull/660/commits/cd409750185fc6860900ae690808e226871759a3
https://github.com/microsoft/mssql-python/issues/659
#659https://github.com/microsoft/mssql-python/issues/659
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
pr-size: medium https://github.com/microsoft/mssql-python/issues?q=state%3Aopen%20label%3A%22pr-size%3A%20medium%22
Jul 3, 2026https://github.com/microsoft/mssql-python/pull/660#event-27513460342
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 3, 2026https://github.com/microsoft/mssql-python/pull/660#issuecomment-4873001933
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
View Azure DevOps Buildhttps://dev.azure.com/SqlClientDrivers/904996cc-6198-4d39-8540-eca72bdf0b7b/_build/results?buildId=159519
Browse Full Coverage Reporthttps://dev.azure.com/SqlClientDrivers/904996cc-6198-4d39-8540-eca72bdf0b7b/_build/results?buildId=159519&view=codecoverage-tab
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
jahnvi480https://github.com/jahnvi480
July 3, 2026 11:47https://github.com/microsoft/mssql-python/pull/660#commits-pushed-e3de108
https://github.com/jahnvi480
Identity-aware connection pooling: isolate pools by identity (https://github.com/microsoft/mssql-python/pull/660/commits/e3de108e389048f6467d21c9e58f3341a61e141a
#651https://github.com/microsoft/mssql-python/issues/651
)https://github.com/microsoft/mssql-python/pull/660/commits/e3de108e389048f6467d21c9e58f3341a61e141a
e3de108https://github.com/microsoft/mssql-python/pull/660/commits/e3de108e389048f6467d21c9e58f3341a61e141a
#651https://github.com/microsoft/mssql-python/issues/651
https://github.com/jahnvi480
feat(pooling): defer token acquisition to a lazy factory on pool miss (https://github.com/microsoft/mssql-python/pull/660/commits/32236ef5416e0a2e3121027be4e84fbcaa284be0
https://github.com/microsoft/mssql-python/issues/659
32236efhttps://github.com/microsoft/mssql-python/pull/660/commits/32236ef5416e0a2e3121027be4e84fbcaa284be0
…#659https://github.com/microsoft/mssql-python/issues/659
#603https://github.com/microsoft/mssql-python/pull/603
#577https://github.com/microsoft/mssql-python/issues/577
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
pr-size: large https://github.com/microsoft/mssql-python/issues?q=state%3Aopen%20label%3A%22pr-size%3A%20large%22
pr-size: medium https://github.com/microsoft/mssql-python/issues?q=state%3Aopen%20label%3A%22pr-size%3A%20medium%22
Jul 3, 2026https://github.com/microsoft/mssql-python/pull/660#event-27516511062
jahnvi480https://github.com/jahnvi480
July 3, 2026 13:25https://github.com/microsoft/mssql-python/pull/660#commits-pushed-5220262
https://github.com/jahnvi480
test: cover lazy token-factory edge cases (https://github.com/microsoft/mssql-python/pull/660/commits/52202622401aca7a9ffc27eca1d3f841815e39d6
#659https://github.com/microsoft/mssql-python/issues/659
)https://github.com/microsoft/mssql-python/pull/660/commits/52202622401aca7a9ffc27eca1d3f841815e39d6
5220262https://github.com/microsoft/mssql-python/pull/660/commits/52202622401aca7a9ffc27eca1d3f841815e39d6
https://github.com/jahnvi480
docs+test: reconcile design scope with PRhttps://github.com/microsoft/mssql-python/pull/660/commits/d38ca6e123f9ac28ac08b8f38ce10ec5a7ff2726
#660https://github.com/microsoft/mssql-python/pull/660
and add cross-identity…https://github.com/microsoft/mssql-python/pull/660/commits/d38ca6e123f9ac28ac08b8f38ce10ec5a7ff2726
d38ca6ehttps://github.com/microsoft/mssql-python/pull/660/commits/d38ca6e123f9ac28ac08b8f38ce10ec5a7ff2726
#660https://github.com/microsoft/mssql-python/pull/660
https://github.com/jahnvi480
refactor(pooling): remove dead code and tidy comments in identity-awa…https://github.com/microsoft/mssql-python/pull/660/commits/29c84f95546d828a27014333823f9433a58a648d
29c84f9https://github.com/microsoft/mssql-python/pull/660/commits/29c84f95546d828a27014333823f9433a58a648d
https://github.com/jahnvi480
chore: remove identity-aware pooling design doc from branchhttps://github.com/microsoft/mssql-python/pull/660/commits/360d407275571009f7260ff6d57d09f39f810e17
360d407https://github.com/microsoft/mssql-python/pull/660/commits/360d407275571009f7260ff6d57d09f39f810e17
https://github.com/jahnvi480
Add silent-first interactive auth and lazy eviction of idle identity …https://github.com/microsoft/mssql-python/pull/660/commits/5814ee25c9f388a6c56655bff31589d4354834f8
5814ee2https://github.com/microsoft/mssql-python/pull/660/commits/5814ee25c9f388a6c56655bff31589d4354834f8
https://github.com/jahnvi480
Reduce pool eviction contention and document auth/pooling contractshttps://github.com/microsoft/mssql-python/pull/660/commits/0181b52184daa09c367510e38427c68e1937efde
0181b52https://github.com/microsoft/mssql-python/pull/660/commits/0181b52184daa09c367510e38427c68e1937efde
https://github.com/jahnvi480
Reset eviction-sweep throttle on reconfigure and closePoolshttps://github.com/microsoft/mssql-python/pull/660/commits/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22
0b5f2dchttps://github.com/microsoft/mssql-python/pull/660/commits/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22
https://github.com/jahnvi480
jahnvi480https://github.com/jahnvi480
July 3, 2026 12:56https://github.com/microsoft/mssql-python/pull/660#event-27529755208
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
July 3, 2026 12:56https://github.com/microsoft/mssql-python/pull/660#event-27529755857
started reviewinghttps://github.com/microsoft/mssql-python/sessions/41547d34-55d5-4cd6-a63a-32139fdb8592
jahnvi480https://github.com/jahnvi480
July 3, 2026 12:56https://github.com/microsoft/mssql-python/pull/660#event-27529777897
View session https://github.com/microsoft/mssql-python/sessions/41547d34-55d5-4cd6-a63a-32139fdb8592
https://github.com/jahnvi480
test: cover account-keyed pool identity and warning double-check pathshttps://github.com/microsoft/mssql-python/pull/660/commits/e285e251cd1bccf846ff73c53ae5d3b87897a7d0
e285e25https://github.com/microsoft/mssql-python/pull/660/commits/e285e251cd1bccf846ff73c53ae5d3b87897a7d0
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Jul 3, 2026 https://github.com/microsoft/mssql-python/pull/660#pullrequestreview-4625938647
View reviewed changes https://github.com/microsoft/mssql-python/pull/660/files/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/mssql-python/pull/660#pullrequestreview-4625938647
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Add Copilot custom instructionshttps://github.com/microsoft/mssql-python/new/main?filename=.github/instructions/*.instructions.md
Learn how to get startedhttps://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
mssql_python/pybind/connection/connection_pool.cpphttps://github.com/microsoft/mssql-python/pull/660/files/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22#diff-35a698bc3405cc30c1bf656066bd0575302239b5e39083a8160a6202026ca360
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
tests/test_008_auth.pyhttps://github.com/microsoft/mssql-python/pull/660/files/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22#diff-83e8bc8183c8cc53e88bf74d3cb8ef1751be6854edd9a727602fe618e691ecdb
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
jahnvi480https://github.com/jahnvi480
July 6, 2026 10:59https://github.com/microsoft/mssql-python/pull/660#commits-pushed-65dd8e4
https://github.com/jahnvi480
Merge branch 'main' into jahnvi/identity-aware-poolinghttps://github.com/microsoft/mssql-python/pull/660/commits/65dd8e4d4924c8fc3a95492746d8c931453095ef
65dd8e4https://github.com/microsoft/mssql-python/pull/660/commits/65dd8e4d4924c8fc3a95492746d8c931453095ef
https://github.com/jahnvi480
fix: isolate pool key for raw access tokens; close pools outside mana…https://github.com/microsoft/mssql-python/pull/660/commits/b4aed115e6198e143b75eb999dfd924727ed0a6c
b4aed11https://github.com/microsoft/mssql-python/pull/660/commits/b4aed115e6198e143b75eb999dfd924727ed0a6c
https://github.com/jahnvi480
Fail closed on token acquisition and harden pooled token refresh/evic…https://github.com/microsoft/mssql-python/pull/660/commits/4ba2d4fae7432f34a2abcf35726703bb88d7fec0
4ba2d4fhttps://github.com/microsoft/mssql-python/pull/660/commits/4ba2d4fae7432f34a2abcf35726703bb88d7fec0
https://github.com/jahnvi480
Reset _pools_closed on enable so re-enable re-arms the disable guardhttps://github.com/microsoft/mssql-python/pull/660/commits/e158e1df1a195488bb9ab2fd92ddb9840e2dcd7d
e158e1dhttps://github.com/microsoft/mssql-python/pull/660/commits/e158e1df1a195488bb9ab2fd92ddb9840e2dcd7d
https://github.com/jahnvi480
Surface auth-acquisition failures as InterfaceError; document token c…https://github.com/microsoft/mssql-python/pull/660/commits/570002046d05b1d0ae79b13fac64ff7a2d4679bb
5700020https://github.com/microsoft/mssql-python/pull/660/commits/570002046d05b1d0ae79b13fac64ff7a2d4679bb
https://github.com/jahnvi480
Fail closed on non-binary access token; add adversarial pool-key testshttps://github.com/microsoft/mssql-python/pull/660/commits/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34
0636c6chttps://github.com/microsoft/mssql-python/pull/660/commits/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34
https://github.com/jahnvi480
jahnvi480https://github.com/jahnvi480
Jul 6, 2026https://github.com/microsoft/mssql-python/pull/660#issuecomment-4892603252
auth.py::compute_identity_keyhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/auth.py#L600-L651
TestComputeIdentityKeyhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_008_auth.py#L1726
token-info helperhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/connection.py#L403-L420
token-factory helperhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/connection.py#L422-L442
key-building blockhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/connection.py#L444-L502
raw-token safety net + fail-closed guardhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/connection.py#L549-L572
same guard in nativehttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection.cpp#L300-L316
TestConnectionPoolKeyhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_008_auth.py#L1785
_acquire_token silent-firsthttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/auth.py#L294-L321
disable_automatic_authenticationhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/auth.py#L285
_authenticate_interactivehttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/auth.py#L186-L214
TestSilentFirstInteractivehttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_008_auth.py#L379
TestAuthenticateInteractivehttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_008_auth.py#L541
ConnectionPool::acquirehttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L58-L120
invokeTokenFactoryhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection.cpp#L534-L550
pybind signatureshttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.h#L71-L74
binding, defaulted argshttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/ddbc_bindings.cpp#L5914
TestNativeTokenFactoryhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L971
near-expiry refresh blockhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L129-L196
tokenExpirySafelyBeyondhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L24-L33
isTokenNearExpiryhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection.cpp#L556-L565
test_near_expiry_token_refreshed_on_checkouthttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L1150
..._factory_token_bytes_are_extractedhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L1185
acquireConnection entry + evictionhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L362-L441
eviction sweephttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L383-L418
closePoolshttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L484-L517
pooling.py enablehttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pooling.py#L31-L78
disablehttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pooling.py#L81-L99
idle-evictedhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L410
in-use-not-evictedhttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L520
re-enable workshttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L899
disable during connectshttps://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L574
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
https://github.com/jahnvi480
Harden token factory and pool reusehttps://github.com/microsoft/mssql-python/pull/660/commits/71642a343684d746aa3d015a44defaa199440741
71642a3https://github.com/microsoft/mssql-python/pull/660/commits/71642a343684d746aa3d015a44defaa199440741
https://github.co/hiddenchars
https://github.com/microsoft/mssql-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-python%2Fpull%2F660
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/mssql-python/pull/660/files/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22
pr-size: large https://github.com/microsoft/mssql-python/issues?q=state%3Aopen%20label%3A%22pr-size%3A%20large%22
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/660
https://github.com/jahnvi480
https://github.com/apps/copilot-pull-request-reviewer
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.