ActiveDirectoryAuthenticationProvider 类

定义

此类实现 SqlAuthenticationProvider 并用于 Active Directory 联合身份验证机制。

public ref class ActiveDirectoryAuthenticationProvider sealed : Microsoft::Data::SqlClient::SqlAuthenticationProvider
public sealed class ActiveDirectoryAuthenticationProvider : Microsoft.Data.SqlClient.SqlAuthenticationProvider
type ActiveDirectoryAuthenticationProvider = class
    inherit SqlAuthenticationProvider
Public NotInheritable Class ActiveDirectoryAuthenticationProvider
Inherits SqlAuthenticationProvider
继承
ActiveDirectoryAuthenticationProvider

构造函数

ActiveDirectoryAuthenticationProvider()

初始化 ActiveDirectoryAuthenticationProvider 类。

ActiveDirectoryAuthenticationProvider(Func<DeviceCodeResult,Task>, String)

ActiveDirectoryAuthenticationProvider使用提供的设备代码流回调方法和应用程序客户端 ID 初始化 类。

ActiveDirectoryAuthenticationProvider(String)

ActiveDirectoryAuthenticationProvider使用提供的应用程序客户端 ID 初始化 类。

方法

AcquireTokenAsync(SqlAuthenticationParameters)

从颁发机构获取安全令牌。

BeforeLoad(SqlAuthenticationMethod)

在将提供程序添加到身份验证提供程序注册表之前,将立即调用此方法。

BeforeUnload(SqlAuthenticationMethod)

此方法在从身份验证提供程序注册表中删除提供程序之前立即调用。

ClearUserTokenCache()

从令牌提供程序中清除缓存的用户令牌。

IsSupported(SqlAuthenticationMethod)

指示是否支持指定的身份验证方法。

SetAcquireAuthorizationCodeAsyncCallback(Func<Uri,Uri,CancellationToken,Task<Uri>>)

设置一个回调方法,该方法通过自定义 Web UI 实例调用,该实例将允许用户使用 Azure Active Directory 登录,根据需要提供许可并取回授权代码。 使用 Active Directory 交互式身份验证时适用。

SetDeviceCodeFlowCallback(Func<DeviceCodeResult,Task>)

设置回调方法,重写处理“Active Directory 设备代码流”身份验证结果的默认实现。

SetIWin32WindowFunc(Func<IWin32Window>)

设置对当前 IWin32Window 的引用,该引用触发要显示的浏览器。 用于使浏览器弹出窗口居中显示到此窗口。”

SetParentActivityOrWindowFunc(Func<Object>)

如果使用 Xamarin.iOS) ,则设置对 ViewController (的引用;如果使用 Xamarin.Android) IWin32Window,则设置对活动 (;如果使用 .NET Framework) ,则设置对 IntPtr (的引用。 用于调用浏览器进行 Active Directory 交互式身份验证。

适用于