JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication Method

Definition

Overloads

UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder)

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) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

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) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) 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

UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder) UseJwtBearerAuthentication(IApplicationBuilder)

Warning

This API is now obsolete.

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseJwtBearerAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseJwtBearerAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
[System.Obsolete("UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseJwtBearerAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseJwtBearerAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseJwtBearerAuthentication (app As IApplicationBuilder) As IApplicationBuilder
Parameters
Returns

A reference to this instance after the operation has completed.

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

Warning

This API is now obsolete.

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseJwtBearerAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^ options);
[System.Obsolete("UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseJwtBearerAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions options);
static member UseJwtBearerAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseJwtBearerAuthentication (app As IApplicationBuilder, options As JwtBearerOptions) As IApplicationBuilder
Parameters
Returns

A reference to this instance after the operation has completed.

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) 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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseJwtBearerAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::JwtBearerOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseJwtBearerAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.JwtBearerOptions options);
static member UseJwtBearerAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.JwtBearerOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseJwtBearerAuthentication (app As IApplicationBuilder, options As JwtBearerOptions) As IApplicationBuilder
Parameters
Returns

A reference to this instance after the operation has completed.

Applies to