NegotiateExtensions.AddNegotiate 方法

定義

多載

AddNegotiate(AuthenticationBuilder)

使用 AuthenticationBuilder 預設配置 AuthenticationScheme ,將 設定為使用交涉 (也稱為 Windows、Kerberos 或 NTLM) 驗證。

此驗證處理常式支援 Windows 和 Linux 伺服器上的 Kerberos。

AddNegotiate(AuthenticationBuilder, Action<NegotiateOptions>)

設定 AuthenticationBuilder 使用預設配置使用交涉 (也稱為 Windows、Kerberos 或 NTLM) 驗證。 預設配置是由 AuthenticationScheme 指定。

此驗證處理常式支援 Windows 和 Linux 伺服器上的 Kerberos。

AddNegotiate(AuthenticationBuilder, String, Action<NegotiateOptions>)

AuthenticationBuilder 設定為使用交涉 (也稱為 Windows、Kerberos 或 NTLM) 使用指定的驗證配置進行驗證。

此驗證處理常式支援 Windows 和 Linux 伺服器上的 Kerberos。

AddNegotiate(AuthenticationBuilder, String, String, Action<NegotiateOptions>)

AuthenticationBuilder 設定為使用交涉 (也稱為 Windows、Kerberos 或 NTLM) 使用指定的驗證配置進行驗證。

此驗證處理常式支援 Windows 和 Linux 伺服器上的 Kerberos。

AddNegotiate(AuthenticationBuilder)

使用 AuthenticationBuilder 預設配置 AuthenticationScheme ,將 設定為使用交涉 (也稱為 Windows、Kerberos 或 NTLM) 驗證。

此驗證處理常式支援 Windows 和 Linux 伺服器上的 Kerberos。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddNegotiate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddNegotiate : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddNegotiate (builder As AuthenticationBuilder) As AuthenticationBuilder

參數

傳回

原始產生器。

適用於

AddNegotiate(AuthenticationBuilder, Action<NegotiateOptions>)

設定 AuthenticationBuilder 使用預設配置使用交涉 (也稱為 Windows、Kerberos 或 NTLM) 驗證。 預設配置是由 AuthenticationScheme 指定。

此驗證處理常式支援 Windows 和 Linux 伺服器上的 Kerberos。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddNegotiate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions> configureOptions);
static member AddNegotiate : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddNegotiate (builder As AuthenticationBuilder, configureOptions As Action(Of NegotiateOptions)) As AuthenticationBuilder

參數

configureOptions
Action<NegotiateOptions>

允許設定驗證處理常式。

傳回

原始產生器。

適用於

AddNegotiate(AuthenticationBuilder, String, Action<NegotiateOptions>)

AuthenticationBuilder 設定為使用交涉 (也稱為 Windows、Kerberos 或 NTLM) 使用指定的驗證配置進行驗證。

此驗證處理常式支援 Windows 和 Linux 伺服器上的 Kerberos。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddNegotiate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions> configureOptions);
static member AddNegotiate : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddNegotiate (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of NegotiateOptions)) As AuthenticationBuilder

參數

authenticationScheme
String

用來在內部識別驗證處理常式的配置名稱。

configureOptions
Action<NegotiateOptions>

允許設定驗證處理常式。

傳回

原始產生器。

適用於

AddNegotiate(AuthenticationBuilder, String, String, Action<NegotiateOptions>)

AuthenticationBuilder 設定為使用交涉 (也稱為 Windows、Kerberos 或 NTLM) 使用指定的驗證配置進行驗證。

此驗證處理常式支援 Windows 和 Linux 伺服器上的 Kerberos。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddNegotiate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddNegotiate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions> configureOptions);
static member AddNegotiate : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddNegotiate (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of NegotiateOptions)) As AuthenticationBuilder

參數

authenticationScheme
String

用來在內部識別驗證處理常式的配置名稱。

displayName
String

選取驗證處理常式時向使用者顯示的名稱。 預設值為 null,以防止此專案顯示。

configureOptions
Action<NegotiateOptions>

允許設定驗證處理常式。

傳回

原始產生器。

適用於