JwtBearerAppBuilderExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for