IJwtBearerEvents Interface

Definition

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

C#
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

Product Versions
ASP.NET Core 1.0, 1.1