IOpenIdConnectEvents 介面

定義

指定 OpenIdConnectMiddleware 叫用的事件,讓開發人員能夠控制驗證程式。

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

方法

AuthenticationFailed(AuthenticationFailedContext)

如果要求處理期間擲回例外狀況,則叫用。 此事件之後會重新擲回例外狀況,除非受到抑制。

AuthorizationCodeReceived(AuthorizationCodeReceivedContext)

如果通訊協定訊息中有授權碼,則在安全性權杖驗證之後叫用。

MessageReceived(MessageReceivedContext)

第一次收到通訊協定訊息時叫用。

RedirectToIdentityProvider(RedirectContext)

在重新導向至識別提供者進行驗證之前叫用。

RedirectToIdentityProviderForSignOut(RedirectContext)

在重新導向至識別提供者以登出之前叫用。

RemoteFailure(FailureContext)

當遠端驗證程式發生錯誤時叫用。

(繼承來源 IRemoteAuthenticationEvents)
RemoteSignOut(RemoteSignOutContext)

在 RemoteSignOutPath 上收到要求時叫用。

TicketReceived(TicketReceivedContext)

在登入之前叫用。

(繼承來源 IRemoteAuthenticationEvents)
TokenResponseReceived(TokenResponseReceivedContext)

在權杖端點的權杖兌換「授權碼」之後叫用。

TokenValidated(TokenValidatedContext)

在驗證 IdToken 並產生 AuthenticationTicket 時叫用。

UserInformationReceived(UserInformationReceivedContext)

從 UserInfoEndpoint 擷取使用者資訊時叫用。

適用於