FIX: Connection String Param for Authentication by jahnvi480 · Pull Request #368 · microsoft/mssql-python
Work Item / Issue Reference
GitHub Issue: #362
Summary
This pull request updates the logic for filtering sensitive parameters in the authentication module. The main change is that the function now removes Trusted_Connection instead of Encrypt and TrustServerCertificate, and the corresponding test has been updated to reflect this new behavior.
Sensitive parameter filtering update:
- In
mssql_python/auth.py, theremove_sensitive_paramsfunction now excludestrusted_connectioninstead ofencryptandtrustservercertificatewhen filtering parameters.
Test updates for new filtering logic:
- In
tests/test_008_auth.py, the test forremove_sensitive_paramshas been updated to expect thatEncryptandTrustServerCertificateare no longer removed, whileTrusted_Connectionis now excluded.