René's URL Explorer Experiment


Title: FIX: Strip stale auth fields from pycore_context after token acquisition in bulkcopy by bewithgaurav · Pull Request #488 · microsoft/mssql-python · GitHub

Open Graph Title: FIX: Strip stale auth fields from pycore_context after token acquisition in bulkcopy by bewithgaurav · Pull Request #488 · microsoft/mssql-python

X Title: FIX: Strip stale auth fields from pycore_context after token acquisition in bulkcopy by bewithgaurav · Pull Request #488 · 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#43402 AB#43408 GitHub Issue: #<ISSUE_NUMBER> Summary Problem cursor.bulkcopy() acquires a fresh Azure AD token and sets pycore_context["access_to...

X Description: Work Item / Issue Reference AB#43402 AB#43408 GitHub Issue: #&lt;ISSUE_NUMBER&gt; Summary Problem cursor.bulkcopy() acquires a fresh Azure AD token and sets pycore_context[&qu...

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

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:761d0327-ecfe-4162-eb0a-1401d611eac9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id902E:1C4F37:1B48625:2573EF7:6A50A1D1
html-safe-nonce9e56a99ca8cca1e03a045b9bb2995deee98b2d4ea67574552df26e2aa79fd05e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDJFOjFDNEYzNzoxQjQ4NjI1OjI1NzNFRjc6NkE1MEExRDEiLCJ2aXNpdG9yX2lkIjoiODc0NzQyNjgxODI4MDE2OTkzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4e20e27a6e7afbc61bea1134f7787d2f18e26cc7b4f1042327e76cc987df1d7c
hovercard-subject-tagpull_request:3450296975
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/488/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/56a0008603d270baa4ab6cf61de6c5045fa3d90a85658f820a298185c35941a6/microsoft/mssql-python/pull/488
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/56a0008603d270baa4ab6cf61de6c5045fa3d90a85658f820a298185c35941a6/microsoft/mssql-python/pull/488
og:image:altWork Item / Issue Reference AB#43402 AB#43408 GitHub Issue: #<ISSUE_NUMBER> Summary Problem cursor.bulkcopy() acquires a fresh Azure AD token and sets pycore_context["access_to...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebewithgaurav
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
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
release7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/mssql-python/pull/488#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-python%2Fpull%2F488
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%2F488
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/488
Reloadhttps://github.com/microsoft/mssql-python/pull/488
Reloadhttps://github.com/microsoft/mssql-python/pull/488
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/488
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 43 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
bewithgauravhttps://github.com/bewithgaurav
mainhttps://github.com/microsoft/mssql-python/tree/main
bewithgaurav/fix-bulkcopy-entra-auth-cleanuphttps://github.com/microsoft/mssql-python/tree/bewithgaurav/fix-bulkcopy-entra-auth-cleanup
Conversationhttps://github.com/microsoft/mssql-python/pull/488
Commits5 (5)https://github.com/microsoft/mssql-python/pull/488/commits
Checkshttps://github.com/microsoft/mssql-python/pull/488/checks
Files changedhttps://github.com/microsoft/mssql-python/pull/488/files
FIX: Strip stale auth fields from pycore_context after token acquisition in bulkcopyhttps://github.com/microsoft/mssql-python/pull/488#top
bewithgauravhttps://github.com/bewithgaurav
mainhttps://github.com/microsoft/mssql-python/tree/main
bewithgaurav/fix-bulkcopy-entra-auth-cleanuphttps://github.com/microsoft/mssql-python/tree/bewithgaurav/fix-bulkcopy-entra-auth-cleanup
https://github.com/bewithgaurav
bewithgauravhttps://github.com/bewithgaurav
Mar 26, 2026https://github.com/microsoft/mssql-python/pull/488#issue-4142372072
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/488
AB#43408https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/43408
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/488
https://github.com/bewithgaurav
Strip stale auth fields from pycore_context after token acquisitionhttps://github.com/microsoft/mssql-python/pull/488/commits/2bbe9198db94ce2eb87adf8347ecdfb13053e9f3
2bbe919https://github.com/microsoft/mssql-python/pull/488/commits/2bbe9198db94ce2eb87adf8347ecdfb13053e9f3
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 26, 2026https://github.com/microsoft/mssql-python/pull/488#issuecomment-4133256332
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/488
View Azure DevOps Buildhttps://dev.azure.com/SqlClientDrivers/904996cc-6198-4d39-8540-eca72bdf0b7b/_build/results?buildId=146002
Browse Full Coverage Reporthttps://dev.azure.com/SqlClientDrivers/904996cc-6198-4d39-8540-eca72bdf0b7b/_build/results?buildId=146002&view=codecoverage-tab
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/488
bewithgauravhttps://github.com/bewithgaurav
March 26, 2026 15:35https://github.com/microsoft/mssql-python/pull/488#commits-pushed-db746a8
https://github.com/bewithgaurav
Merge branch 'main' ofhttps://github.com/microsoft/mssql-python/pull/488/commits/db746a8a45796dfd87090505b1da349fb5b8839c
https://github.com/microsoft/mssql-pythonhttps://github.com/microsoft/mssql-python
into…https://github.com/microsoft/mssql-python/pull/488/commits/db746a8a45796dfd87090505b1da349fb5b8839c
db746a8https://github.com/microsoft/mssql-python/pull/488/commits/db746a8a45796dfd87090505b1da349fb5b8839c
https://github.com/bewithgaurav
linting fixhttps://github.com/microsoft/mssql-python/pull/488/commits/f7e4628ea52d492f15a2007208c555bdf8a3f665
f7e4628https://github.com/microsoft/mssql-python/pull/488/commits/f7e4628ea52d492f15a2007208c555bdf8a3f665
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
Mar 26, 2026https://github.com/microsoft/mssql-python/pull/488#event-23927393961
https://github.com/bewithgaurav
bewithgauravhttps://github.com/bewithgaurav
March 26, 2026 10:52https://github.com/microsoft/mssql-python/pull/488#event-23927595229
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
March 26, 2026 10:52https://github.com/microsoft/mssql-python/pull/488#event-23927595987
started reviewinghttps://github.com/microsoft/mssql-python/sessions/29f93812-0ff4-45ff-b80d-d0f767d24853
bewithgauravhttps://github.com/bewithgaurav
March 26, 2026 10:53https://github.com/microsoft/mssql-python/pull/488#event-23927621654
View session https://github.com/microsoft/mssql-python/sessions/29f93812-0ff4-45ff-b80d-d0f767d24853
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Mar 26, 2026 https://github.com/microsoft/mssql-python/pull/488#pullrequestreview-4013092593
View reviewed changes https://github.com/microsoft/mssql-python/pull/488/files/f7e4628ea52d492f15a2007208c555bdf8a3f665
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/mssql-python/pull/488#pullrequestreview-4013092593
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/488
tests/test_020_bulkcopy_auth_cleanup.pyhttps://github.com/microsoft/mssql-python/pull/488/files/f7e4628ea52d492f15a2007208c555bdf8a3f665#diff-61dcd357c34e3c25f15f496855d9e64d4a33ddc697de81bb6a6304e168ee2b81
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/488
tests/test_020_bulkcopy_auth_cleanup.pyhttps://github.com/microsoft/mssql-python/pull/488/files/f7e4628ea52d492f15a2007208c555bdf8a3f665#diff-61dcd357c34e3c25f15f496855d9e64d4a33ddc697de81bb6a6304e168ee2b81
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/488
https://github.com/bewithgaurav
Remove unused imports and unnecessary get_settings patchinghttps://github.com/microsoft/mssql-python/pull/488/commits/34524dc027cf5a38889a144bec727fa4dfe8d443
34524dchttps://github.com/microsoft/mssql-python/pull/488/commits/34524dc027cf5a38889a144bec727fa4dfe8d443
https://github.com/bewithgaurav
bewithgauravhttps://github.com/bewithgaurav
saurabh500https://github.com/saurabh500
April 2, 2026 09:45https://github.com/microsoft/mssql-python/pull/488#event-24142383158
https://github.com/subrata-ms
subrata-mshttps://github.com/subrata-ms
Apr 2, 2026 https://github.com/microsoft/mssql-python/pull/488#pullrequestreview-4051936226
View reviewed changes https://github.com/microsoft/mssql-python/pull/488/files/971e2c9490945252dffdf08b79e889ad797e0fc3
https://github.com/saurabh500
saurabh500https://github.com/saurabh500
Apr 3, 2026 https://github.com/microsoft/mssql-python/pull/488#pullrequestreview-4053924705
View reviewed changes https://github.com/microsoft/mssql-python/pull/488/files/971e2c9490945252dffdf08b79e889ad797e0fc3
https://github.com/bewithgaurav
Merge branch 'main' into bewithgaurav/fix-bulkcopy-entra-auth-cleanuphttps://github.com/microsoft/mssql-python/pull/488/commits/971e2c9490945252dffdf08b79e889ad797e0fc3
971e2c9https://github.com/microsoft/mssql-python/pull/488/commits/971e2c9490945252dffdf08b79e889ad797e0fc3
https://github.com/bewithgaurav
bewithgauravhttps://github.com/bewithgaurav
d51c5d4https://github.com/microsoft/mssql-python/commit/d51c5d4ac4af696dad91b23cf38c3b799eccb6f2
Apr 3, 2026https://github.com/microsoft/mssql-python/pull/488#event-24170427768
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/488
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%2F488
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/488/files/f7e4628ea52d492f15a2007208c555bdf8a3f665
https://github.com/saurabh500
saurabh500 https://github.com/saurabh500
https://github.com/microsoft/mssql-python/pull/488/files/971e2c9490945252dffdf08b79e889ad797e0fc3
https://github.com/subrata-ms
subrata-ms https://github.com/subrata-ms
https://github.com/microsoft/mssql-python/pull/488/files/971e2c9490945252dffdf08b79e889ad797e0fc3
pr-size: medium https://github.com/microsoft/mssql-python/issues?q=state%3Aopen%20label%3A%22pr-size%3A%20medium%22
Please reload this pagehttps://github.com/microsoft/mssql-python/pull/488
https://github.com/bewithgaurav
https://github.com/saurabh500
https://github.com/subrata-ms
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.