Compartir a través de


JwtBearerExtensions.AddJwtBearer Método

Definición

Sobrecargas

AddJwtBearer(AuthenticationBuilder)

Habilita la autenticación de portador JWT mediante el esquema AuthenticationSchemepredeterminado .

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

Habilita la autenticación de portador JWT mediante el esquema AuthenticationSchemepredeterminado .

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

AddJwtBearer(AuthenticationBuilder, String)

Habilita la autenticación de portador JWT mediante un esquema predefinido.

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

Habilita la autenticación de portador JWT mediante el esquema especificado.

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

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

Habilita la autenticación de portador JWT mediante el esquema especificado.

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

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

Habilita la autenticación de portador JWT mediante el esquema AuthenticationSchemepredeterminado .

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

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

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

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

Habilita la autenticación de portador JWT mediante el esquema AuthenticationSchemepredeterminado .

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

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>

Delegado que permite configurar JwtBearerOptions.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddJwtBearer(AuthenticationBuilder, String)

Source:
JwtBearerExtensions.cs
Source:
JwtBearerExtensions.cs
Source:
JwtBearerExtensions.cs

Habilita la autenticación de portador JWT mediante un esquema predefinido.

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

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

Esquema de autenticación.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

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

Habilita la autenticación de portador JWT mediante el esquema especificado.

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

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

Esquema de autenticación.

configureOptions
Action<JwtBearerOptions>

Delegado que permite configurar JwtBearerOptions.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

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

Habilita la autenticación de portador JWT mediante el esquema especificado.

La autenticación de portador JWT realiza la autenticación mediante la extracción y validación de un token JWT del Authorization encabezado de solicitud.

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

Esquema de autenticación.

displayName
String

Nombre para mostrar del controlador de autenticación.

configureOptions
Action<JwtBearerOptions>

Delegado que permite configurar JwtBearerOptions.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a