Microsoft.Data.SqlClient.ActiveDirectoryAuthenticationProvider
This class implements SqlAuthenticationProvider and is used for active directory federated authentication mechanisms.
Initializes the ActiveDirectoryAuthenticationProvider class.
Initializes the ActiveDirectoryAuthenticationProvider class with the provided application client id.
public ActiveDirectoryAuthenticationProvider(Func<DeviceCodeResult, Task> deviceCodeFlowCallbackMethod, string applicationClientId = null)
Initializes the ActiveDirectoryAuthenticationProvider class with the provided device code flow callback method and application client id.
Clears cached user tokens from the token provider.
public void SetAcquireAuthorizationCodeAsyncCallback(Func<Uri, Uri, CancellationToken, Task<Uri>> acquireAuthorizationCodeAsyncCallback)
Sets a callback method which is invoked with a custom Web UI instance that will let the user sign-in with Azure Active Directory, present consent if needed, and get back the authorization code. Applicable when working with Active Directory Interactive authentication.
Sets the callback method, overriding the default implementation that processes the result for 'Active Directory Device Code Flow' authentication.