語言

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 流程總是使用系統瀏覽器。

建構函式

名稱 Description
ActiveDirectoryAuthenticationProviderOptions()

建築師使用的 ActiveDirectoryAuthenticationProvider(ActiveDirectoryAuthenticationProviderOptions) 財產袋。

屬性

名稱 Description
ApplicationClientId

Optional Entra ID application (client) id.當 null時,會使用 SqlClient 第一方應用程式 ID,且在 Windows 上執行時,強制開啟 WAM 代理模式(不論 )。UseWamBroker

DeviceCodeFlowCallback

可選地呼叫裝置程式碼流程回調。SqlAuthenticationMethod.ActiveDirectoryDeviceCodeFlow 當 null時,會使用提供者的預設回調(將裝置程式碼指令寫入主控台)。

UseWamBroker

僅限 Windows 的設定,用以控制提供者是否使用 WAM 代理進行互動式驗證。 預設是 false 當你提供自訂 ApplicationClientId的 . 否則,Windows 會自動使用 WAM 代理模式。

適用於