Dela via


IOpenIdConnectEvents Interface

Definition

Specifies events which the OpenIdConnectMiddlewareinvokes to enable developer control over the authentication process.

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
Derived
Implements

Methods

AuthenticationFailed(AuthenticationFailedContext)

Invoked if exceptions are thrown during request processing. The exceptions will be re-thrown after this event unless suppressed.

AuthorizationCodeReceived(AuthorizationCodeReceivedContext)

Invoked after security token validation if an authorization code is present in the protocol message.

MessageReceived(MessageReceivedContext)

Invoked when a protocol message is first received.

RedirectToIdentityProvider(RedirectContext)

Invoked before redirecting to the identity provider to authenticate.

RedirectToIdentityProviderForSignOut(RedirectContext)

Invoked before redirecting to the identity provider to sign out.

RemoteFailure(FailureContext)

Invoked when the remote authentication process has an error.

(Inherited from IRemoteAuthenticationEvents)
RemoteSignOut(RemoteSignOutContext)

Invoked when a request is received on the RemoteSignOutPath.

TicketReceived(TicketReceivedContext)

Invoked before sign in.

(Inherited from IRemoteAuthenticationEvents)
TokenResponseReceived(TokenResponseReceivedContext)

Invoked after "authorization code" is redeemed for tokens at the token endpoint.

TokenValidated(TokenValidatedContext)

Invoked when an IdToken has been validated and produced an AuthenticationTicket.

UserInformationReceived(UserInformationReceivedContext)

Invoked when user information is retrieved from the UserInfoEndpoint.

Applies to