BearerTokenExtensions.AddBearerToken Método

Definição

Sobrecargas

AddBearerToken(AuthenticationBuilder)

Adiciona autenticação de token de portador. O esquema padrão é especificado por AuthenticationScheme.

Os tokens de portador podem ser obtidos chamando SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Adiciona autenticação de token de portador. O esquema padrão é especificado por AuthenticationScheme.

Os tokens de portador podem ser obtidos chamando SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String)

Adiciona autenticação de token de portador.

Os tokens de portador podem ser obtidos chamando SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Adiciona autenticação de token de portador.

Os tokens de portador podem ser obtidos chamando SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder)

Adiciona autenticação de token de portador. O esquema padrão é especificado por AuthenticationScheme.

Os tokens de portador podem ser obtidos chamando 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

Retornos

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

Aplica-se a

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Adiciona autenticação de token de portador. O esquema padrão é especificado por AuthenticationScheme.

Os tokens de portador podem ser obtidos chamando 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>

Ação usada para configurar as opções de autenticação de token de portador.

Retornos

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

Aplica-se a

AddBearerToken(AuthenticationBuilder, String)

Adiciona autenticação de token de portador.

Os tokens de portador podem ser obtidos chamando 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

O esquema de autenticação.

Retornos

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

Aplica-se a

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Adiciona autenticação de token de portador.

Os tokens de portador podem ser obtidos chamando 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

O esquema de autenticação.

configure
Action<BearerTokenOptions>

Ação usada para configurar as opções de autenticação de token de portador.

Retornos

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

Aplica-se a