NegotiateHandler 類別

定義

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

public ref class NegotiateHandler : Microsoft::AspNetCore::Authentication::AuthenticationHandler<Microsoft::AspNetCore::Authentication::Negotiate::NegotiateOptions ^>, Microsoft::AspNetCore::Authentication::IAuthenticationRequestHandler
public class NegotiateHandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions>, Microsoft.AspNetCore.Authentication.IAuthenticationRequestHandler
type NegotiateHandler = class
    inherit AuthenticationHandler<NegotiateOptions>
    interface IAuthenticationRequestHandler
    interface IAuthenticationHandler
Public Class NegotiateHandler
Inherits AuthenticationHandler(Of NegotiateOptions)
Implements IAuthenticationRequestHandler
繼承
實作

建構函式

NegotiateHandler(IOptionsMonitor<NegotiateOptions>, ILoggerFactory, UrlEncoder)

建立新的 NegotiateHandler

NegotiateHandler(IOptionsMonitor<NegotiateOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
已淘汰.

建立新的 NegotiateHandler

屬性

ChallengeCalled

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
ClaimsIssuer

取得發行任何宣告時應該使用的簽發者。

(繼承來源 AuthenticationHandler<TOptions>)
Clock
已淘汰.

取得 ISystemClock

(繼承來源 AuthenticationHandler<TOptions>)
Context

取得或設定 HttpContext

(繼承來源 AuthenticationHandler<TOptions>)
CurrentUri

取得絕對目前的 URL。

(繼承來源 AuthenticationHandler<TOptions>)
Events

處理常式會針對事件呼叫方法,以在發生處理的特定時間點提供應用程式控制。 若未提供,則會提供呼叫方法時沒有作用的預設執行個體。

InitializeResult

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
Logger

取得 ILogger

(繼承來源 AuthenticationHandler<TOptions>)
Options

取得或設定與這個驗證處理常式相關聯的選項。

(繼承來源 AuthenticationHandler<TOptions>)
OptionsMonitor

IOptionsMonitor<TOptions>取得 ,以偵測選項的變更。

(繼承來源 AuthenticationHandler<TOptions>)
OriginalPath

取得驗證中介軟體所見的路徑。

(繼承來源 AuthenticationHandler<TOptions>)
OriginalPathBase

取得驗證中介軟體所見的路徑基底。

(繼承來源 AuthenticationHandler<TOptions>)
PriorHandler

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
Request

HttpRequest取得與目前要求相關聯的 。

(繼承來源 AuthenticationHandler<TOptions>)
Response

HttpResponse取得與目前要求相關聯的 。

(繼承來源 AuthenticationHandler<TOptions>)
Scheme

取得或設定 AuthenticationScheme 與這個驗證處理常式關聯的 。

(繼承來源 AuthenticationHandler<TOptions>)
SignInAccepted

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
SignOutAccepted

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
TimeProvider

取得目前的時間,主要是用於單元測試。

(繼承來源 AuthenticationHandler<TOptions>)
UrlEncoder

取得 UrlEncoder

(繼承來源 AuthenticationHandler<TOptions>)

方法

AuthenticateAsync()

驗證目前的要求。

(繼承來源 AuthenticationHandler<TOptions>)
AuthenticateAsync(AuthenticateContext)

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
BuildRedirectUri(String)

建構指定 targetPath 之 的絕對 URL。

(繼承來源 AuthenticationHandler<TOptions>)
ChallengeAsync(AuthenticationProperties)

挑戰目前的要求。

(繼承來源 AuthenticationHandler<TOptions>)
ChallengeAsync(ChallengeContext)

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
CreateEventsAsync()

建立預設事件種類。

FinishResponseAsync()

即將傳送回應時所呼叫的勾點

(繼承來源 AuthenticationHandler<TOptions>)
ForbidAsync(AuthenticationProperties)

禁止目前的要求。

(繼承來源 AuthenticationHandler<TOptions>)
GetDescriptions(DescribeSchemesContext)

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
HandleAuthenticateAsync()

檢查目前的要求是否已通過驗證,並傳回使用者。

HandleAuthenticateOnceAsync()

用來確保 HandleAuthenticateAsync 只會叫用一次。 後續呼叫會傳回相同的驗證結果。

(繼承來源 AuthenticationHandler<TOptions>)
HandleAuthenticateOnceSafeAsync()

用來確保 HandleAuthenticateAsync 只會安全地叫用一次。 後續呼叫會傳回相同的驗證結果。 任何例外狀況都會轉換成包含例外狀況的失敗驗證結果。

(繼承來源 AuthenticationHandler<TOptions>)
HandleChallengeAsync(AuthenticationProperties)

發出 401 WWW-Authenticate交涉挑戰。

HandleForbiddenAsync(AuthenticationProperties)

覆寫此方法以處理 Forbid。

(繼承來源 AuthenticationHandler<TOptions>)
HandleForbiddenAsync(ChallengeContext)

覆寫此方法以處理禁止的挑戰。

(繼承來源 AuthenticationHandler<TOptions>)
HandleRequestAsync()

攔截不完整的交涉驗證交握,並繼續或完成。

HandleSignInAsync(SignInContext)

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
HandleSignOutAsync(SignOutContext)

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
HandleUnauthorizedAsync(ChallengeContext)

如果有問題的驗證配置在要求流程中處理驗證互動,請覆寫此方法來處理 401 挑戰考慮。 (例如新增回應標頭,或變更 401 結果為登入頁面 302 或外部登入位置)。

(繼承來源 AuthenticationHandler<TOptions>)
InitializeAsync(AuthenticationScheme, HttpContext)

初始化處理常式、解析選項並加以驗證。

(繼承來源 AuthenticationHandler<TOptions>)
InitializeAsync(TOptions, HttpContext, ILogger, UrlEncoder)

每個要求會呼叫初始化一次,以適當狀態將此實例內容化。

(繼承來源 AuthenticationHandler<TOptions>)
InitializeEventsAsync()

初始化 事件物件,每個要求呼叫一次。 InitializeAsync(AuthenticationScheme, HttpContext)

(繼承來源 AuthenticationHandler<TOptions>)
InitializeHandlerAsync()

在已初始化選項/事件之後呼叫,處理常式才能完成初始化本身。

(繼承來源 AuthenticationHandler<TOptions>)
ResolveTarget(String)

解析此驗證作業轉送至的配置。

(繼承來源 AuthenticationHandler<TOptions>)
ShouldHandleScheme(String, Boolean)

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
SignInAsync(SignInContext)

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)
SignOutAsync(SignOutContext)

使用 Negotiate、Kerberos 或 NTLM 驗證要求。

(繼承來源 AuthenticationHandler<TOptions>)

適用於