| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:983d0bf0-d37e-a793-adce-0e97ac8daf9f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9DD6:47EDE:19CF614:24E8CBB:6A4F77B8 |
| html-safe-nonce | 903c2b71f38057d2a52849e50b8b996b8ed21dfc8796a55f2a21b8fd59b73ad0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REQ2OjQ3RURFOjE5Q0Y2MTQ6MjRFOENCQjo2QTRGNzdCOCIsInZpc2l0b3JfaWQiOiI4MzM0NDYzMzg0ODk3NDE5MTkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a217ac83f9172f81db115248729f6d78b8d43160d95a8f65e7b988c7f938062b |
| hovercard-subject-tag | pull_request:3983646109 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/mssql-python/660/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/75c62438ce1735bd1c9a6f5fcee8d2ef9ae310ddf2e5fbeeeeec827501f96282/microsoft/mssql-python/pull/660 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75c62438ce1735bd1c9a6f5fcee8d2ef9ae310ddf2e5fbeeeeec827501f96282/microsoft/mssql-python/pull/660 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jahnvi480 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-cache |
| go-import | github.com/microsoft/mssql-python git https://github.com/microsoft/mssql-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 921684538 |
| octolytics-dimension-repository_nwo | microsoft/mssql-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 921684538 |
| octolytics-dimension-repository_network_root_nwo | microsoft/mssql-python |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/microsoft/mssql-python/pull/660 |
| Reload | https://github.com/microsoft/mssql-python/pull/660 |
| Reload | https://github.com/microsoft/mssql-python/pull/660 |
| Please reload this page | https://github.com/microsoft/mssql-python/pull/660 |
|
microsoft
| https://github.com/microsoft |
| mssql-python | https://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 |
| jahnvi480 | https://github.com/jahnvi480 |
| main | https://github.com/microsoft/mssql-python/tree/main |
| jahnvi/identity-aware-pooling | https://github.com/microsoft/mssql-python/tree/jahnvi/identity-aware-pooling |
| Conversation | https://github.com/microsoft/mssql-python/pull/660 |
| Commits18 (18) | https://github.com/microsoft/mssql-python/pull/660/commits |
| Checks | https://github.com/microsoft/mssql-python/pull/660/checks |
| Files changed | https://github.com/microsoft/mssql-python/pull/660/files |
| FEAT: token-expiry capture and identity-aware pool key | https://github.com/microsoft/mssql-python/pull/660#top |
| jahnvi480 | https://github.com/jahnvi480 |
| main | https://github.com/microsoft/mssql-python/tree/main |
| jahnvi/identity-aware-pooling | https://github.com/microsoft/mssql-python/tree/jahnvi/identity-aware-pooling |
|
| https://github.com/jahnvi480 |
| jahnvi480 | https://github.com/jahnvi480 |
| Jul 3, 2026 | https://github.com/microsoft/mssql-python/pull/660#issue-4800722459 |
| Please reload this page | https://github.com/microsoft/mssql-python/pull/660 |
| AB#46159 | https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/46159 |
| AB#46160 | https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/46160 |
| #651 | https://github.com/microsoft/mssql-python/issues/651 |
| #659 | https://github.com/microsoft/mssql-python/issues/659 |
| Please reload this page | https://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 |
| #651 | https://github.com/microsoft/mssql-python/issues/651 |
| , | https://github.com/microsoft/mssql-python/pull/660/commits/cd409750185fc6860900ae690808e226871759a3 |
| #659 | https://github.com/microsoft/mssql-python/issues/659 |
| cd40975 | https://github.com/microsoft/mssql-python/pull/660/commits/cd409750185fc6860900ae690808e226871759a3 |
| https://github.com/microsoft/mssql-python/issues/659 |
| #659 | https://github.com/microsoft/mssql-python/issues/659 |
| https://github.com/apps/github-actions |
| github-actions | https://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, 2026 | https://github.com/microsoft/mssql-python/pull/660#event-27513460342 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Jul 3, 2026 | https://github.com/microsoft/mssql-python/pull/660#issuecomment-4873001933 |
| Please reload this page | https://github.com/microsoft/mssql-python/pull/660 |
| View Azure DevOps Build | https://dev.azure.com/SqlClientDrivers/904996cc-6198-4d39-8540-eca72bdf0b7b/_build/results?buildId=159519 |
| Browse Full Coverage Report | https://dev.azure.com/SqlClientDrivers/904996cc-6198-4d39-8540-eca72bdf0b7b/_build/results?buildId=159519&view=codecoverage-tab |
| Please reload this page | https://github.com/microsoft/mssql-python/pull/660 |
| jahnvi480 | https://github.com/jahnvi480 |
| July 3, 2026 11:47 | https://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 |
| #651 | https://github.com/microsoft/mssql-python/issues/651 |
| ) | https://github.com/microsoft/mssql-python/pull/660/commits/e3de108e389048f6467d21c9e58f3341a61e141a |
| e3de108 | https://github.com/microsoft/mssql-python/pull/660/commits/e3de108e389048f6467d21c9e58f3341a61e141a |
| #651 | https://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 |
| 32236ef | https://github.com/microsoft/mssql-python/pull/660/commits/32236ef5416e0a2e3121027be4e84fbcaa284be0 |
| …#659 | https://github.com/microsoft/mssql-python/issues/659 |
| #603 | https://github.com/microsoft/mssql-python/pull/603 |
| #577 | https://github.com/microsoft/mssql-python/issues/577 |
| https://github.com/apps/github-actions |
| github-actions | https://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, 2026 | https://github.com/microsoft/mssql-python/pull/660#event-27516511062 |
| jahnvi480 | https://github.com/jahnvi480 |
| July 3, 2026 13:25 | https://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 |
| #659 | https://github.com/microsoft/mssql-python/issues/659 |
| ) | https://github.com/microsoft/mssql-python/pull/660/commits/52202622401aca7a9ffc27eca1d3f841815e39d6 |
| 5220262 | https://github.com/microsoft/mssql-python/pull/660/commits/52202622401aca7a9ffc27eca1d3f841815e39d6 |
|
| https://github.com/jahnvi480 |
| docs+test: reconcile design scope with PR | https://github.com/microsoft/mssql-python/pull/660/commits/d38ca6e123f9ac28ac08b8f38ce10ec5a7ff2726 |
| #660 | https://github.com/microsoft/mssql-python/pull/660 |
| and add cross-identity… | https://github.com/microsoft/mssql-python/pull/660/commits/d38ca6e123f9ac28ac08b8f38ce10ec5a7ff2726 |
| d38ca6e | https://github.com/microsoft/mssql-python/pull/660/commits/d38ca6e123f9ac28ac08b8f38ce10ec5a7ff2726 |
| #660 | https://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 |
| 29c84f9 | https://github.com/microsoft/mssql-python/pull/660/commits/29c84f95546d828a27014333823f9433a58a648d |
|
| https://github.com/jahnvi480 |
| chore: remove identity-aware pooling design doc from branch | https://github.com/microsoft/mssql-python/pull/660/commits/360d407275571009f7260ff6d57d09f39f810e17 |
| 360d407 | https://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 |
| 5814ee2 | https://github.com/microsoft/mssql-python/pull/660/commits/5814ee25c9f388a6c56655bff31589d4354834f8 |
|
| https://github.com/jahnvi480 |
| Reduce pool eviction contention and document auth/pooling contracts | https://github.com/microsoft/mssql-python/pull/660/commits/0181b52184daa09c367510e38427c68e1937efde |
| 0181b52 | https://github.com/microsoft/mssql-python/pull/660/commits/0181b52184daa09c367510e38427c68e1937efde |
|
| https://github.com/jahnvi480 |
| Reset eviction-sweep throttle on reconfigure and closePools | https://github.com/microsoft/mssql-python/pull/660/commits/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22 |
| 0b5f2dc | https://github.com/microsoft/mssql-python/pull/660/commits/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22 |
| https://github.com/jahnvi480 |
| jahnvi480 | https://github.com/jahnvi480 |
| July 3, 2026 12:56 | https://github.com/microsoft/mssql-python/pull/660#event-27529755208 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| July 3, 2026 12:56 | https://github.com/microsoft/mssql-python/pull/660#event-27529755857 |
| started reviewing | https://github.com/microsoft/mssql-python/sessions/41547d34-55d5-4cd6-a63a-32139fdb8592 |
| jahnvi480 | https://github.com/jahnvi480 |
| July 3, 2026 12:56 | https://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 paths | https://github.com/microsoft/mssql-python/pull/660/commits/e285e251cd1bccf846ff73c53ae5d3b87897a7d0 |
| e285e25 | https://github.com/microsoft/mssql-python/pull/660/commits/e285e251cd1bccf846ff73c53ae5d3b87897a7d0 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://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 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/microsoft/mssql-python/pull/660#pullrequestreview-4625938647 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Add Copilot custom instructions | https://github.com/microsoft/mssql-python/new/main?filename=.github/instructions/*.instructions.md |
| Learn how to get started | https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot |
| Please reload this page | https://github.com/microsoft/mssql-python/pull/660 |
| mssql_python/pybind/connection/connection_pool.cpp | https://github.com/microsoft/mssql-python/pull/660/files/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22#diff-35a698bc3405cc30c1bf656066bd0575302239b5e39083a8160a6202026ca360 |
| Please reload this page | https://github.com/microsoft/mssql-python/pull/660 |
| tests/test_008_auth.py | https://github.com/microsoft/mssql-python/pull/660/files/0b5f2dc2d502a06a2b9e29a00b360b2be7347f22#diff-83e8bc8183c8cc53e88bf74d3cb8ef1751be6854edd9a727602fe618e691ecdb |
| Please reload this page | https://github.com/microsoft/mssql-python/pull/660 |
| jahnvi480 | https://github.com/jahnvi480 |
| July 6, 2026 10:59 | https://github.com/microsoft/mssql-python/pull/660#commits-pushed-65dd8e4 |
|
| https://github.com/jahnvi480 |
| Merge branch 'main' into jahnvi/identity-aware-pooling | https://github.com/microsoft/mssql-python/pull/660/commits/65dd8e4d4924c8fc3a95492746d8c931453095ef |
| 65dd8e4 | https://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 |
| b4aed11 | https://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 |
| 4ba2d4f | https://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 guard | https://github.com/microsoft/mssql-python/pull/660/commits/e158e1df1a195488bb9ab2fd92ddb9840e2dcd7d |
| e158e1d | https://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 |
| 5700020 | https://github.com/microsoft/mssql-python/pull/660/commits/570002046d05b1d0ae79b13fac64ff7a2d4679bb |
|
| https://github.com/jahnvi480 |
| Fail closed on non-binary access token; add adversarial pool-key tests | https://github.com/microsoft/mssql-python/pull/660/commits/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34 |
| 0636c6c | https://github.com/microsoft/mssql-python/pull/660/commits/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34 |
| https://github.com/jahnvi480 |
| jahnvi480 | https://github.com/jahnvi480 |
| Jul 6, 2026 | https://github.com/microsoft/mssql-python/pull/660#issuecomment-4892603252 |
| auth.py::compute_identity_key | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/auth.py#L600-L651 |
| TestComputeIdentityKey | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_008_auth.py#L1726 |
| token-info helper | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/connection.py#L403-L420 |
| token-factory helper | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/connection.py#L422-L442 |
| key-building block | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/connection.py#L444-L502 |
| raw-token safety net + fail-closed guard | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/connection.py#L549-L572 |
| same guard in native | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection.cpp#L300-L316 |
| TestConnectionPoolKey | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_008_auth.py#L1785 |
| _acquire_token silent-first | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/auth.py#L294-L321 |
| disable_automatic_authentication | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/auth.py#L285 |
| _authenticate_interactive | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/auth.py#L186-L214 |
| TestSilentFirstInteractive | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_008_auth.py#L379 |
| TestAuthenticateInteractive | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_008_auth.py#L541 |
| ConnectionPool::acquire | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L58-L120 |
| invokeTokenFactory | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection.cpp#L534-L550 |
| pybind signatures | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.h#L71-L74 |
| binding, defaulted args | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/ddbc_bindings.cpp#L5914 |
| TestNativeTokenFactory | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L971 |
| near-expiry refresh block | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L129-L196 |
| tokenExpirySafelyBeyond | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L24-L33 |
| isTokenNearExpiry | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection.cpp#L556-L565 |
| test_near_expiry_token_refreshed_on_checkout | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L1150 |
| ..._factory_token_bytes_are_extracted | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L1185 |
| acquireConnection entry + eviction | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L362-L441 |
| eviction sweep | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L383-L418 |
| closePools | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pybind/connection/connection_pool.cpp#L484-L517 |
| pooling.py enable | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pooling.py#L31-L78 |
| disable | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/mssql_python/pooling.py#L81-L99 |
| idle-evicted | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L410 |
| in-use-not-evicted | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L520 |
| re-enable works | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L899 |
| disable during connects | https://github.com/microsoft/mssql-python/blob/0636c6c90fbb4fb3d8fc35c9c6922b281ac92c34/tests/test_009_pooling.py#L574 |
| Please reload this page | https://github.com/microsoft/mssql-python/pull/660 |
|
| https://github.com/jahnvi480 |
| Harden token factory and pool reuse | https://github.com/microsoft/mssql-python/pull/660/commits/71642a343684d746aa3d015a44defaa199440741 |
| 71642a3 | https://github.com/microsoft/mssql-python/pull/660/commits/71642a343684d746aa3d015a44defaa199440741 |
| https://github.co/hiddenchars |
| https://github.com/microsoft/mssql-python/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://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 page | https://github.com/microsoft/mssql-python/pull/660 |
|
| https://github.com/jahnvi480 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |