JwtBearerExtensions.AddJwtBearer Método

Definição

Sobrecargas

AddJwtBearer(AuthenticationBuilder)

Habilita a autenticação do portador JWT usando o esquema AuthenticationSchemepadrão .

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

Habilita a autenticação do portador JWT usando o esquema AuthenticationSchemepadrão .

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

AddJwtBearer(AuthenticationBuilder, String)

Habilita a autenticação do portador JWT usando um esquema predefinido.

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

Habilita a autenticação do portador JWT usando o esquema especificado.

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>)

Habilita a autenticação do portador JWT usando o esquema especificado.

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

AddJwtBearer(AuthenticationBuilder)

Habilita a autenticação do portador JWT usando o esquema AuthenticationSchemepadrão .

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

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

Parâmetros

Retornos

Uma referência a builder após a conclusão da operação.

Aplica-se a

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

Habilita a autenticação do portador JWT usando o esquema AuthenticationSchemepadrão .

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

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

Parâmetros

configureOptions
Action<JwtBearerOptions>

Um delegado que permite configurar JwtBearerOptions.

Retornos

Uma referência a builder após a conclusão da operação.

Aplica-se a

AddJwtBearer(AuthenticationBuilder, String)

Habilita a autenticação do portador JWT usando um esquema predefinido.

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

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

Parâmetros

authenticationScheme
String

O esquema de autenticação.

Retornos

Uma referência a builder após a conclusão da operação.

Aplica-se a

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

Habilita a autenticação do portador JWT usando o esquema especificado.

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

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

Parâmetros

authenticationScheme
String

O esquema de autenticação.

configureOptions
Action<JwtBearerOptions>

Um delegado que permite configurar JwtBearerOptions.

Retornos

Uma referência a builder após a conclusão da operação.

Aplica-se a

AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>)

Habilita a autenticação do portador JWT usando o esquema especificado.

A autenticação do portador JWT executa a autenticação extraindo e validando um token JWT do cabeçalho da Authorization solicitação.

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

Parâmetros

authenticationScheme
String

O esquema de autenticação.

displayName
String

O nome de exibição do manipulador de autenticação.

configureOptions
Action<JwtBearerOptions>

Um delegado que permite configurar JwtBearerOptions.

Retornos

Uma referência a builder após a conclusão da operação.

Aplica-se a