IJwtBearerEvents Interface¶
Specifies events which the Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerMiddleware
invokes to enable developer control over the authentication process.
- Namespace
Microsoft.AspNetCore.Authentication.JwtBearer
- Assemblies
- Microsoft.AspNetCore.Authentication.JwtBearer
Syntax¶
public interface IJwtBearerEvents
-
interface
Microsoft.AspNetCore.Authentication.JwtBearer.
IJwtBearerEvents
Methods¶
-
AuthenticationFailed
(Microsoft.AspNetCore.Authentication.JwtBearer.AuthenticationFailedContext)¶ Invoked if exceptions are thrown during request processing. The exceptions will be re-thrown after this event unless suppressed.
Return type: System.Threading.Tasks.Task Task AuthenticationFailed(AuthenticationFailedContext context)
-
Challenge
(Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerChallengeContext)¶ Invoked to apply a challenge sent back to the caller.
Return type: System.Threading.Tasks.Task Task Challenge(JwtBearerChallengeContext context)
-
MessageReceived
(Microsoft.AspNetCore.Authentication.JwtBearer.MessageReceivedContext)¶ Invoked when a protocol message is first received.
Return type: System.Threading.Tasks.Task Task MessageReceived(MessageReceivedContext context)
-
TokenValidated
(Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext)¶ Invoked after the security token has passed validation and a ClaimsIdentity has been generated.
Return type: System.Threading.Tasks.Task Task TokenValidated(TokenValidatedContext context)
-