JwtBearerAppBuilderExtensions Class

Definition

Extension methods to add OpenIdConnect Bearer authentication capabilities to an HTTP application pipeline.

public ref class JwtBearerAppBuilderExtensions abstract sealed
public static class JwtBearerAppBuilderExtensions
type JwtBearerAppBuilderExtensions = class
Public Module JwtBearerAppBuilderExtensions
Inheritance
JwtBearerAppBuilderExtensions

Methods

UseJwtBearerAuthentication(IApplicationBuilder)
Obsolete.
Obsolete.

UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)
Obsolete.
Obsolete.

UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

Adds the JwtBearerMiddleware middleware to the specified IApplicationBuilder, which enables Bearer token processing capabilities. This middleware understands appropriately formatted and secured tokens which appear in the request header. If the Options.AuthenticationMode is Active, the claims within the bearer token are added to the current request's IPrincipal User. If the Options.AuthenticationMode is Passive, then the current request is not modified, but IAuthenticationManager AuthenticateAsync may be used at any time to obtain the claims from the request's bearer token. See also http://tools.ietf.org/html/rfc6749

Applies to