IAuthenticationRequestHandler 介面

定義

用來判斷處理常式是否要參與要求處理。

public interface class IAuthenticationRequestHandler : Microsoft::AspNetCore::Authentication::IAuthenticationHandler
public interface IAuthenticationRequestHandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler
type IAuthenticationRequestHandler = interface
    interface IAuthenticationHandler
Public Interface IAuthenticationRequestHandler
Implements IAuthenticationHandler
衍生
實作

方法

AuthenticateAsync()

驗證目前的要求。

(繼承來源 IAuthenticationHandler)
ChallengeAsync(AuthenticationProperties)

挑戰目前的要求。

(繼承來源 IAuthenticationHandler)
ForbidAsync(AuthenticationProperties)

禁止目前的要求。

(繼承來源 IAuthenticationHandler)
HandleRequestAsync()

取得值,這個值會判斷要求是否應該停止處理。

驗證中介軟體支援此功能,如果處理常式傳 true 回 ,則不會叫用要求管線中設定的任何後續 IAuthenticationHandler 或中介軟體。

InitializeAsync(AuthenticationScheme, HttpContext)

初始化驗證處理常式。 處理常式應該從要求和配置初始化它所需的任何專案,做為這個方法的一部分。

(繼承來源 IAuthenticationHandler)

適用於