FEAT: EntraID Access Token Support for BulkCopy by bewithgaurav · Pull Request #426 · microsoft/mssql-python

added 2 commits

February 10, 2026 00:34

@bewithgaurav

@bewithgaurav bewithgaurav changed the title FEAT: Support Access Tokens for Bulk Copy FEAT: EntraID Access Token Support for BulkCopy

Feb 10, 2026

@bewithgaurav

Copilot AI review requested due to automatic review settings

February 10, 2026 08:19
- Add extract_auth_type() fallback for Windows Interactive where
  process_connection_string returns auth_type=None (DDBC handles
  auth natively but bulkcopy needs it for Azure Identity)
- Preserve auth_type in fallthrough return so bulkcopy can attempt
  fresh token acquisition even when connect-time token fails
- Fix get_raw_token docstring to match actual credential behavior
- Use 'is None' instead of '== None' in test assertion
Raises ValueError with supported types instead of KeyError when an
unsupported auth_type is passed to _acquire_token.

bewithgaurav

…llthrough return, clean up extract_auth_type parsing

@bewithgaurav

saurabh500

@bewithgaurav

@bewithgaurav

… bewithgaurav/bulkcopy-accesstoken-support

sumitmsft

@bewithgaurav

@bewithgaurav

sumitmsft

saurabh500

@bewithgaurav