JwtBearerExtensions.AddJwtBearer Méthode

Définition

Surcharges

AddJwtBearer(AuthenticationBuilder)

Active l’authentification du porteur JWT à l’aide du schéma AuthenticationSchemepar défaut .

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

Active l’authentification du porteur JWT à l’aide du schéma AuthenticationSchemepar défaut .

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

AddJwtBearer(AuthenticationBuilder, String)

Active l’authentification du porteur JWT à l’aide d’un schéma prédéfini.

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

Active l’authentification du porteur JWT à l’aide du schéma spécifié.

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

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

Active l’authentification du porteur JWT à l’aide du schéma spécifié.

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

AddJwtBearer(AuthenticationBuilder)

Active l’authentification du porteur JWT à l’aide du schéma AuthenticationSchemepar défaut .

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

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

Paramètres

Retours

Référence à builder une fois l’opération terminée.

S’applique à

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

Active l’authentification du porteur JWT à l’aide du schéma AuthenticationSchemepar défaut .

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

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

Paramètres

configureOptions
Action<JwtBearerOptions>

Délégué qui permet de configurer JwtBearerOptions.

Retours

Référence à builder une fois l’opération terminée.

S’applique à

AddJwtBearer(AuthenticationBuilder, String)

Active l’authentification du porteur JWT à l’aide d’un schéma prédéfini.

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

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

Paramètres

authenticationScheme
String

Schéma d'authentification.

Retours

Référence à builder une fois l’opération terminée.

S’applique à

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

Active l’authentification du porteur JWT à l’aide du schéma spécifié.

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

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

Paramètres

authenticationScheme
String

Schéma d'authentification.

configureOptions
Action<JwtBearerOptions>

Délégué qui permet de configurer JwtBearerOptions.

Retours

Référence à builder une fois l’opération terminée.

S’applique à

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

Active l’authentification du porteur JWT à l’aide du schéma spécifié.

L’authentification du porteur JWT effectue l’authentification en extrayant et en validant un jeton JWT à partir de l’en-tête de requête Authorization .

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

Paramètres

authenticationScheme
String

Schéma d'authentification.

displayName
String

Nom d’affichage du gestionnaire d’authentification.

configureOptions
Action<JwtBearerOptions>

Délégué qui permet de configurer JwtBearerOptions.

Retours

Référence à builder une fois l’opération terminée.

S’applique à