语言

ActiveDirectoryAuthenticationProviderOptions 类

定义

public ref class ActiveDirectoryAuthenticationProviderOptions sealed
public sealed class ActiveDirectoryAuthenticationProviderOptions
type ActiveDirectoryAuthenticationProviderOptions = class
Public NotInheritable Class ActiveDirectoryAuthenticationProviderOptions
继承
ActiveDirectoryAuthenticationProviderOptions

注解

首选此 options-bag 构造函数而不是新代码中的位置参数重载。 可以在将来的版本中添加其他选项,而无需引入新的构造函数重载。

UseWamBroker是仅Windows设置:它对非Windows平台没有影响,其中交互式Entra ID流始终使用系统浏览器。

构造函数

名称 说明
ActiveDirectoryAuthenticationProviderOptions()

构造函数使用 ActiveDirectoryAuthenticationProvider(ActiveDirectoryAuthenticationProviderOptions) 的属性包。

属性

名称 说明
ApplicationClientId

可选Entra ID应用程序(客户端)ID。使用 SqlClient 第一方应用程序 ID 时null,在Windows运行时,WAM 中转站模式强制使用(无论是否UseWamBroker)。

DeviceCodeFlowCallback

为 SqlAuthenticationMethod.ActiveDirectoryDeviceCodeFlow.调用的可选设备代码流回调。 当 null,使用提供程序的默认回调(将设备代码指令写入控制台)。

UseWamBroker

Windows唯一设置,用于控制提供程序是否使用 WAM 代理进行交互式身份验证。 false默认为提供自定义ApplicationClientId项时。 否则,WAM 中转站模式在Windows上自动使用。

适用于