Compartir a través de


BearerTokenExtensions.AddBearerToken Método

Definición

Sobrecargas

AddBearerToken(AuthenticationBuilder)

Agrega autenticación de token de portador. El esquema predeterminado se especifica mediante AuthenticationScheme.

Los tokens de portador se pueden obtener llamando a SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Agrega autenticación de token de portador. El esquema predeterminado se especifica mediante AuthenticationScheme.

Los tokens de portador se pueden obtener llamando a SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String)

Agrega autenticación de token de portador.

Los tokens de portador se pueden obtener llamando a SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Agrega autenticación de token de portador.

Los tokens de portador se pueden obtener llamando a SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder)

Source:
BearerTokenExtensions.cs

Agrega autenticación de token de portador. El esquema predeterminado se especifica mediante AuthenticationScheme.

Los tokens de portador se pueden obtener llamando a 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

Parámetros

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Source:
BearerTokenExtensions.cs

Agrega autenticación de token de portador. El esquema predeterminado se especifica mediante AuthenticationScheme.

Los tokens de portador se pueden obtener llamando a 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

Parámetros

configure
Action<BearerTokenOptions>

Acción que se usa para configurar las opciones de autenticación del token de portador.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddBearerToken(AuthenticationBuilder, String)

Source:
BearerTokenExtensions.cs

Agrega autenticación de token de portador.

Los tokens de portador se pueden obtener llamando a 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

Parámetros

authenticationScheme
String

Esquema de autenticación.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Source:
BearerTokenExtensions.cs

Agrega autenticación de token de portador.

Los tokens de portador se pueden obtener llamando a 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

Parámetros

authenticationScheme
String

Esquema de autenticación.

configure
Action<BearerTokenOptions>

Acción que se usa para configurar las opciones de autenticación del token de portador.

Devoluciones

Referencia a builder una vez completada la operación.

Se aplica a