IJwtBearerEvents Interface

Definition

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

public interface class IJwtBearerEvents
public interface IJwtBearerEvents
type IJwtBearerEvents = interface
Public Interface IJwtBearerEvents
Derived

Methods

AuthenticationFailed(AuthenticationFailedContext)

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

Challenge(JwtBearerChallengeContext)

Invoked to apply a challenge sent back to the caller.

MessageReceived(MessageReceivedContext)

Invoked when a protocol message is first received.

TokenValidated(TokenValidatedContext)

Invoked after the security token has passed validation and a ClaimsIdentity has been generated.

Applies to