-
Notifications
You must be signed in to change notification settings - Fork 317
Deprecate Active Directory Password authentication method #3671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
ActiveDirectoryPasswordenum 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 |
src/Microsoft.Data.SqlClient/tests/StressTests/SqlClient.Stress.Tests/SqlClientStressFactory.cs
Outdated
Show resolved
Hide resolved
...crosoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…veDirectoryAuthenticationProvider.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Resolves #3188