<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.0-preview1.25257.1" />

Microsoft.Data.SqlClient.SqlAuthenticationProvider

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

Called from constructors in derived classes to initialize the SqlAuthenticationProvider class.

Gets an authentication provider by method.

public static bool SetProvider(SqlAuthenticationMethod authenticationMethod, SqlAuthenticationProvider provider)

Sets an authentication provider by method.

Acquires a security 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.