Share via


AuthenticationFailedContext 類別

定義

ResultContext<TOptions>驗證失敗時的 。

public ref class AuthenticationFailedContext : Microsoft::AspNetCore::Authentication::JwtBearer::BaseJwtBearerContext
public ref class AuthenticationFailedContext : Microsoft::AspNetCore::Authentication::ResultContext<Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^>
public class AuthenticationFailedContext : Microsoft.AspNetCore.Authentication.JwtBearer.BaseJwtBearerContext
public class AuthenticationFailedContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions>
type AuthenticationFailedContext = class
    inherit BaseJwtBearerContext
type AuthenticationFailedContext = class
    inherit ResultContext<JwtBearerOptions>
Public Class AuthenticationFailedContext
Inherits BaseJwtBearerContext
Public Class AuthenticationFailedContext
Inherits ResultContext(Of JwtBearerOptions)
繼承
繼承

建構函式

AuthenticationFailedContext(HttpContext, AuthenticationScheme, JwtBearerOptions)

初始化 AuthenticationFailedContext 的新執行個體。

AuthenticationFailedContext(HttpContext, JwtBearerOptions)

ResultContext<TOptions>驗證失敗時的 。

屬性

Exception

取得或設定與驗證失敗相關聯的例外狀況。

HandledResponse

ResultContext<TOptions>驗證失敗時的 。

(繼承來源 BaseControlContext)
HttpContext

ResultContext<TOptions>驗證失敗時的 。

(繼承來源 BaseContext)
HttpContext

內容。

(繼承來源 BaseContext<TOptions>)
Options

ResultContext<TOptions>驗證失敗時的 。

(繼承來源 BaseJwtBearerContext)
Options

取得與配置相關聯的驗證選項。

(繼承來源 BaseContext<TOptions>)
Principal

取得或設定 ClaimsPrincipal 包含使用者宣告的 。

(繼承來源 ResultContext<TOptions>)
Properties

取得或設定 AuthenticationProperties

(繼承來源 ResultContext<TOptions>)
Request

ResultContext<TOptions>驗證失敗時的 。

(繼承來源 BaseContext)
Request

要求。

(繼承來源 BaseContext<TOptions>)
Response

ResultContext<TOptions>驗證失敗時的 。

(繼承來源 BaseContext)
Response

回應。

(繼承來源 BaseContext<TOptions>)
Result

AuthenticateResult取得結果。

(繼承來源 ResultContext<TOptions>)
Scheme

驗證配置。

(繼承來源 BaseContext<TOptions>)
Skipped

ResultContext<TOptions>驗證失敗時的 。

(繼承來源 BaseControlContext)
State

ResultContext<TOptions>驗證失敗時的 。

(繼承來源 BaseControlContext)
Ticket

取得或設定 , Ticket 當這個事件發出處理事件的訊號時,要傳回的 。

(繼承來源 BaseControlContext)

方法

CheckEventResult(AuthenticateResult)

ResultContext<TOptions>驗證失敗時的 。

(繼承來源 BaseControlContext)
Fail(Exception)

表示驗證期間發生失敗。

(繼承來源 ResultContext<TOptions>)
Fail(String)

表示驗證期間發生失敗。

(繼承來源 ResultContext<TOptions>)
HandleResponse()

中斷此要求的所有處理並返回用戶端。 呼叫端負責產生完整回應。 Ticket將 設定為觸發 SignIn。

(繼承來源 BaseControlContext)
NoResult()

表示此驗證配置沒有傳回任何資訊。

(繼承來源 ResultContext<TOptions>)
SkipToNextMiddleware()

中斷處理目前中介軟體中的要求,並將控制權移至下一個。 不會呼叫 SignIn。

(繼承來源 BaseControlContext)
Success()

使用 PrincipalProperties 呼叫成功建立票證。

(繼承來源 ResultContext<TOptions>)

適用於