JwtBearerExtensions.AddJwtBearer Method
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.
Overloads
AddJwtBearer(AuthenticationBuilder) |
Enables JWT-bearer authentication using the default scheme AuthenticationScheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the |
AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>) |
Enables JWT-bearer authentication using the default scheme AuthenticationScheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the |
AddJwtBearer(AuthenticationBuilder, String) |
Enables JWT-bearer authentication using a pre-defined scheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the |
AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>) |
Enables JWT-bearer authentication using the specified scheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the |
AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>) |
Enables JWT-bearer authentication using the specified scheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the |
AddJwtBearer(AuthenticationBuilder)
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
Enables JWT-bearer authentication using the default scheme AuthenticationScheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the Authorization
request header.
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder) As AuthenticationBuilder
Parameters
- builder
- AuthenticationBuilder
Returns
A reference to builder
after the operation has completed.
Applies to
AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
Enables JWT-bearer authentication using the default scheme AuthenticationScheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the Authorization
request header.
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, configureOptions As Action(Of JwtBearerOptions)) As AuthenticationBuilder
Parameters
- builder
- AuthenticationBuilder
- configureOptions
- Action<JwtBearerOptions>
A delegate that allows configuring JwtBearerOptions.
Returns
A reference to builder
after the operation has completed.
Applies to
AddJwtBearer(AuthenticationBuilder, String)
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
Enables JWT-bearer authentication using a pre-defined scheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the Authorization
request header.
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, authenticationScheme As String) As AuthenticationBuilder
Parameters
- builder
- AuthenticationBuilder
- authenticationScheme
- String
The authentication scheme.
Returns
A reference to builder
after the operation has completed.
Applies to
AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
Enables JWT-bearer authentication using the specified scheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the Authorization
request header.
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of JwtBearerOptions)) As AuthenticationBuilder
Parameters
- builder
- AuthenticationBuilder
- authenticationScheme
- String
The authentication scheme.
- configureOptions
- Action<JwtBearerOptions>
A delegate that allows configuring JwtBearerOptions.
Returns
A reference to builder
after the operation has completed.
Applies to
AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>)
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
- Source:
- JwtBearerExtensions.cs
Enables JWT-bearer authentication using the specified scheme.
JWT bearer authentication performs authentication by extracting and validating a JWT token from the Authorization
request header.
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of JwtBearerOptions)) As AuthenticationBuilder
Parameters
- builder
- AuthenticationBuilder
- authenticationScheme
- String
The authentication scheme.
- displayName
- String
The display name for the authentication handler.
- configureOptions
- Action<JwtBearerOptions>
A delegate that allows configuring JwtBearerOptions.
Returns
A reference to builder
after the operation has completed.