Microsoft.Data.SqlClient.SqlAuthenticationProvider
Defines the core behavior of authentication providers and provides a base class for derived classes.
namespace Microsoft.Data.SqlClient
{
public abstract class SqlAuthenticationProvider
{
public virtual void BeforeLoad(SqlAuthenticationMethod authenticationMethod);
public virtual void BeforeUnload(SqlAuthenticationMethod authenticationMethod);
public abstract bool IsSupported(SqlAuthenticationMethod authenticationMethod);
public abstract Task<SqlAuthenticationToken> AcquireTokenAsync(SqlAuthenticationParameters parameters);
public static SqlAuthenticationProvider GetProvider(SqlAuthenticationMethod authenticationMethod);
public static bool SetProvider(SqlAuthenticationMethod authenticationMethod, SqlAuthenticationProvider provider);
protected SqlAuthenticationProvider();
}
}
namespace Microsoft.Data.SqlClient
{
public sealed class SqlAuthenticationParameters
{
public SqlAuthenticationMethod AuthenticationMethod { get; }
public string Resource { get; }
public string Authority { get; }
public string UserId { get; }
public string Password { get; }
public Guid ConnectionId { get; }
public string ServerName { get; }
public string DatabaseName { get; }
public int ConnectionTimeout { get; }
public SqlAuthenticationParameters(SqlAuthenticationMethod authenticationMethod, string serverName, string databaseName, string resource, string authority, string userId, string password, Guid connectionId, int connectionTimeout);
}
}