SqlAuthenticationProvider.AcquireTokenAsync Method

Definition

Acquires a security token from the authority.

C#
public abstract System.Threading.Tasks.Task<Microsoft.Data.SqlClient.SqlAuthenticationToken> AcquireTokenAsync (Microsoft.Data.SqlClient.SqlAuthenticationParameters parameters);

Parameters

parameters
SqlAuthenticationParameters

The Active Directory authentication parameters passed by the driver to authentication providers.

Returns

Represents an asynchronous operation that returns the AD authentication token.

Applies to

Product Versions
SqlClient .NET Core 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Framework 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Standard 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2