AuthenticationFailedContext 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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)
- 繼承
- 繼承
建構函式
屬性
方法
| 名稱 | Description |
|---|---|
| CheckEventResult(AuthenticateResult) |
ResultContext<TOptions>驗證失敗時的 。 (繼承來源 BaseControlContext) |
| Fail(Exception) |
表示驗證期間發生失敗。 (繼承來源 ResultContext<TOptions>) |
| Fail(String) |
表示驗證期間發生失敗。 (繼承來源 ResultContext<TOptions>) |
| HandleResponse() |
中斷此要求的所有處理並返回用戶端。 呼叫端負責產生完整回應。 Ticket將 設定為觸發 SignIn。 (繼承來源 BaseControlContext) |
| NoResult() |
表示此驗證配置沒有傳回任何資訊。 (繼承來源 ResultContext<TOptions>) |
| SkipToNextMiddleware() |
中斷處理目前中介軟體中的要求,並將控制權移至下一個。 不會呼叫 SignIn。 (繼承來源 BaseControlContext) |
| Success() |
使用 Principal 和 Properties 呼叫成功建立票證。 (繼承來源 ResultContext<TOptions>) |