FIX: Connection String Param for Authentication by jahnvi480 · Pull Request #368 · microsoft/mssql-python

Work Item / Issue Reference

AB#40945

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, the remove_sensitive_params function now excludes trusted_connection instead of encrypt and trustservercertificate when filtering parameters.

Test updates for new filtering logic:

  • In tests/test_008_auth.py, the test for remove_sensitive_params has been updated to expect that Encrypt and TrustServerCertificate are no longer removed, while Trusted_Connection is now excluded.