Repository navigation
Perform Azure Authentication Split - #3392
paulmedynski wants to merge 3 commits into
Conversation
paulmedynski
commented
Jun 4, 2025
- Setup new Extensions and Azure extension projects.
- Moved shared types over into Extensions.
- Moved Azure auth types into Azure.
- Updated netcore and netfx projects to reference Extensions.
- Updated netcore and netfx projects to build on Linux.
|
Maybe refer to related and most voted issue? How will this be delivered (which NuGet packages) ? |
|
I realise this is still in draft, but PR #2884 had a couple of interesting conversations about configuring the Azure authentication provider to use WAM without dragging in the System.Windows.Forms dependencies - in particular, around the |
|
This is an exploratory draft PR meant for internal consumption for the time being. It's the easiest way to get some pretty diffs that we can use to discuss the path forward. I'll watch here for external commentary though, and we will take everything under consideration. |
- Setup new Extensions and Azure extension projects. - Moved shared types over into Extensions. - Moved Azure auth types into Azure. - Updated netcore and netfx projects to reference Extensions. - Updated netcore and netfx projects to build on Linux. - Created SqlAuthenticationProviderException class to encapsulate MSAL errors. - Updated MDS to search for the Azure extension and use it as a default auth provider. - Cleaned up ref projects. - Cleaned up MDS XML docs to exclude members/fields declared in Extensions. - Removed MDS dependency on Azure.Identity. - Added missing dependencies to netfx project. - Added retry checks to Azure provider. - Left TODOs related to some retry policies and exception handling.
fe232fe to
1b59ec0
Compare
paulmedynski
left a comment
There was a problem hiding this comment.
Marking where I have reviewed to.
@edwardneal that's my intention :) I've been waiting for this work to kick off to pick up the WAM work again. |
| namespace Microsoft.Data.SqlClient; | ||
|
|
||
| /// <include file='../doc/ISqlAuthenticationParameters.xml' path='docs/members[@name="ISqlAuthenticationParameters"]/ISqlAuthenticationParameters/*'/> | ||
| public interface ISqlAuthenticationParameters |
There was a problem hiding this comment.
@paulmedynski You may want to reconsider the usage of an interface for a public API.
Interfaces cannot be evolved with new members.
If a new method/property is added to interface, then older implementations become incompatible. With base class and virtual methods, the evolution of public API is possible.
I thought I will leave this thought here, even though I know this PR is WIP.
- Changed ISqlAuthenticationParameters from an interface to a base class.
- Added NuGet package creation config. - Now referencing Extensions via <PackageReference>, with local NuGet source.
|
PR Closed without comment is that bad news for the split? |
|
This was a draft PR for internal consumption. I am splitting the work up in to smaller chunks. You will see more PRs as this work becomes ready. |
|
@paulmedynski |