<PackageReference Include="Microsoft.Data.SqlClient.Extensions.Abstractions" Version="7.1.0-preview2.26190.5" />

Microsoft.Data.SqlClient.SqlAuthenticationProvider

public abstract class SqlAuthenticationProvider
Defines the core behavior of authentication providers and provides a base class for derived classes.

Gets an authentication provider by method.

public static bool SetProvider(SqlAuthenticationMethod authenticationMethod, SqlAuthenticationProvider provider)

Sets an authentication provider by method.

Acquires an access token from the authority.

public virtual void BeforeLoad(SqlAuthenticationMethod authenticationMethod)

This method is called immediately before the provider is added to the SQL authentication provider registry.

public virtual void BeforeUnload(SqlAuthenticationMethod authenticationMethod)

This method is called immediately before the provider is removed from the SQL authentication provider registry.

public abstract bool IsSupported(SqlAuthenticationMethod authenticationMethod)

Indicates whether the specified authentication method is supported.