Skip to content

Conversation

cheenamalhotra
Copy link
Member

Resolves #3188

@cheenamalhotra cheenamalhotra added this to the 7.0-preview2 milestone Oct 8, 2025
@cheenamalhotra cheenamalhotra requested a review from a team as a code owner October 8, 2025 00:15
@Copilot Copilot AI review requested due to automatic review settings October 8, 2025 00:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR deprecates the Active Directory Password authentication method by adding the [Obsolete] attribute to SqlAuthenticationMethod.ActiveDirectoryPassword and adding pragma warnings to suppress obsolete member usage warnings throughout the codebase.

  • Marks ActiveDirectoryPassword enum value as obsolete with informative message
  • Adds pragma warning suppressions around all existing usages of the deprecated method
  • Updates both .NET Framework and .NET Core reference assemblies

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
TdsEnums.cs Added [Obsolete] attribute to ActiveDirectoryPassword enum value
netfx/ref/Microsoft.Data.SqlClient.cs Added [Obsolete] attribute to ActiveDirectoryPassword in .NET Framework reference assembly
netcore/ref/Microsoft.Data.SqlClient.cs Added [Obsolete] attribute to ActiveDirectoryPassword in .NET Core reference assembly
SqlAuthenticationProviderManager.cs Added [Obsolete] attribute to constant and pragma warnings around usage
ActiveDirectoryAuthenticationProvider.cs Added pragma warnings around ActiveDirectoryPassword usage and fixed formatting
TdsParser.cs Added pragma warnings around ActiveDirectoryPassword usage
SqlConnection.cs Added pragma warnings around ActiveDirectoryPassword usage
SqlInternalConnectionTds.cs (both netfx/netcore) Added pragma warnings around ActiveDirectoryPassword usage
AADConnectionTest.cs Added pragma warnings around test code using ActiveDirectoryPassword
SqlAuthenticationProviderTest.cs Added pragma warnings around test data using ActiveDirectoryPassword
SqlClientStressFactory.cs Changed authentication method from ActiveDirectoryPassword to ActiveDirectoryIntegrated with pragma warnings

cheenamalhotra and others added 2 commits October 7, 2025 17:21
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…veDirectoryAuthenticationProvider.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate Authentication=ActiveDirectoryPassword
1 participant