Condividi tramite


BearerTokenExtensions.AddBearerToken Metodo

Definizione

Overload

AddBearerToken(AuthenticationBuilder)

Aggiunge l'autenticazione del token di connessione. Lo schema predefinito è specificato da AuthenticationScheme.

I token di connessione possono essere ottenuti chiamando SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Aggiunge l'autenticazione del token di connessione. Lo schema predefinito è specificato da AuthenticationScheme.

I token di connessione possono essere ottenuti chiamando SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String)

Aggiunge l'autenticazione del token di connessione.

I token di connessione possono essere ottenuti chiamando SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Aggiunge l'autenticazione del token di connessione.

I token di connessione possono essere ottenuti chiamando SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder)

Aggiunge l'autenticazione del token di connessione. Lo schema predefinito è specificato da AuthenticationScheme.

I token di connessione possono essere ottenuti chiamando 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

Parametri

Restituisce

Riferimento a builder dopo il completamento dell'operazione.

Si applica a

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Aggiunge l'autenticazione del token di connessione. Lo schema predefinito è specificato da AuthenticationScheme.

I token di connessione possono essere ottenuti chiamando 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

Parametri

configure
Action<BearerTokenOptions>

Azione usata per configurare le opzioni di autenticazione del token di connessione.

Restituisce

Riferimento a builder dopo il completamento dell'operazione.

Si applica a

AddBearerToken(AuthenticationBuilder, String)

Aggiunge l'autenticazione del token di connessione.

I token di connessione possono essere ottenuti chiamando 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

Parametri

authenticationScheme
String

Schema di autenticazione.

Restituisce

Riferimento a builder dopo il completamento dell'operazione.

Si applica a

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Aggiunge l'autenticazione del token di connessione.

I token di connessione possono essere ottenuti chiamando 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

Parametri

authenticationScheme
String

Schema di autenticazione.

configure
Action<BearerTokenOptions>

Azione usata per configurare le opzioni di autenticazione del token di connessione.

Restituisce

Riferimento a builder dopo il completamento dell'operazione.

Si applica a