BearerTokenExtensions.AddBearerToken Méthode

Définition

Surcharges

AddBearerToken(AuthenticationBuilder)

Ajoute l’authentification par jeton du porteur. Le schéma par défaut est spécifié par AuthenticationScheme.

Les jetons du porteur peuvent être obtenus en appelant SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Ajoute l’authentification par jeton du porteur. Le schéma par défaut est spécifié par AuthenticationScheme.

Les jetons du porteur peuvent être obtenus en appelant SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String)

Ajoute l’authentification par jeton du porteur.

Les jetons du porteur peuvent être obtenus en appelant SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Ajoute l’authentification par jeton du porteur.

Les jetons du porteur peuvent être obtenus en appelant SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder)

Ajoute l’authentification par jeton du porteur. Le schéma par défaut est spécifié par AuthenticationScheme.

Les jetons du porteur peuvent être obtenus en appelant SignInAsync(HttpContext, String, ClaimsPrincipal).

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddBearerToken (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddBearerToken : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddBearerToken (builder As AuthenticationBuilder) As AuthenticationBuilder

Paramètres

Retours

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

S’applique à

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Ajoute l’authentification par jeton du porteur. Le schéma par défaut est spécifié par AuthenticationScheme.

Les jetons du porteur peuvent être obtenus en appelant SignInAsync(HttpContext, String, ClaimsPrincipal).

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddBearerToken (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenOptions> configure);
static member AddBearerToken : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddBearerToken (builder As AuthenticationBuilder, configure As Action(Of BearerTokenOptions)) As AuthenticationBuilder

Paramètres

configure
Action<BearerTokenOptions>

Action utilisée pour configurer les options d’authentification du jeton du porteur.

Retours

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

S’applique à

AddBearerToken(AuthenticationBuilder, String)

Ajoute l’authentification par jeton du porteur.

Les jetons du porteur peuvent être obtenus en appelant SignInAsync(HttpContext, String, ClaimsPrincipal).

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddBearerToken (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme);
static member AddBearerToken : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddBearerToken (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 à

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Ajoute l’authentification par jeton du porteur.

Les jetons du porteur peuvent être obtenus en appelant SignInAsync(HttpContext, String, ClaimsPrincipal).

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddBearerToken (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenOptions> configure);
static member AddBearerToken : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddBearerToken (builder As AuthenticationBuilder, authenticationScheme As String, configure As Action(Of BearerTokenOptions)) As AuthenticationBuilder

Paramètres

authenticationScheme
String

Schéma d'authentification.

configure
Action<BearerTokenOptions>

Action utilisée pour configurer les options d’authentification du jeton du porteur.

Retours

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

S’applique à