Share via


Microsoft.AspNetCore.Authentication.JwtBearer Namespace

Contains types that enable support for JWT bearer based authentication.

Classes

AuthenticationFailedContext

A ResultContext<TOptions> when authentication has failed.

BaseJwtBearerContext
ForbiddenContext

A ResultContext<TOptions> when access to a resource is forbidden.

JwtBearerChallengeContext

A PropertiesContext<TOptions> when access to a resource authenticated using JWT bearer is challenged.

JwtBearerDefaults

Default values used by JwtBearerHandler for JWT bearer authentication.

JwtBearerEvents

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

JwtBearerHandler

An AuthenticationHandler<TOptions> that can perform JWT-bearer based authentication.

JwtBearerMiddleware

Bearer authentication middleware component which is added to an HTTP pipeline. This class is not created by application code directly, instead it is added by calling the the IAppBuilder UseJwtBearerAuthentication extension method.

JwtBearerOptions

Options class provides information needed to control Bearer Authentication handler behavior

JwtBearerPostConfigureOptions

Used to setup defaults for all JwtBearerOptions.

MessageReceivedContext

A context for OnMessageReceived.

TokenValidatedContext

A context for OnTokenValidated.

Interfaces

IJwtBearerEvents

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

Remarks

For more information about using JWT bearer based authentication, see Introduction to authentication in ASP.NET Core.