BearerTokenExtensions.AddBearerToken Methode

Definition

Überlädt

AddBearerToken(AuthenticationBuilder)

Fügt die Bearertokenauthentifizierung hinzu. Das Standardschema wird von AuthenticationSchemeangegeben.

Bearertoken können durch Aufrufen SignInAsync(HttpContext, String, ClaimsPrincipal)von abgerufen werden.

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Fügt die Bearertokenauthentifizierung hinzu. Das Standardschema wird von AuthenticationSchemeangegeben.

Bearertoken können durch Aufrufen SignInAsync(HttpContext, String, ClaimsPrincipal)von abgerufen werden.

AddBearerToken(AuthenticationBuilder, String)

Fügt die Bearertokenauthentifizierung hinzu.

Bearertoken können durch Aufrufen SignInAsync(HttpContext, String, ClaimsPrincipal)von abgerufen werden.

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Fügt die Bearertokenauthentifizierung hinzu.

Bearertoken können durch Aufrufen SignInAsync(HttpContext, String, ClaimsPrincipal)von abgerufen werden.

AddBearerToken(AuthenticationBuilder)

Fügt die Bearertokenauthentifizierung hinzu. Das Standardschema wird von AuthenticationSchemeangegeben.

Bearertoken können durch Aufrufen SignInAsync(HttpContext, String, ClaimsPrincipal)von abgerufen werden.

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

Parameter

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Fügt die Bearertokenauthentifizierung hinzu. Das Standardschema wird von AuthenticationSchemeangegeben.

Bearertoken können durch Aufrufen SignInAsync(HttpContext, String, ClaimsPrincipal)von abgerufen werden.

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

Parameter

configure
Action<BearerTokenOptions>

Aktion zum Konfigurieren der Bearertokenauthentifizierungsoptionen.

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

AddBearerToken(AuthenticationBuilder, String)

Fügt die Bearertokenauthentifizierung hinzu.

Bearertoken können durch Aufrufen SignInAsync(HttpContext, String, ClaimsPrincipal)von abgerufen werden.

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

Parameter

authenticationScheme
String

Das Authentifizierungsschema.

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Fügt die Bearertokenauthentifizierung hinzu.

Bearertoken können durch Aufrufen SignInAsync(HttpContext, String, ClaimsPrincipal)von abgerufen werden.

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

Parameter

authenticationScheme
String

Das Authentifizierungsschema.

configure
Action<BearerTokenOptions>

Aktion zum Konfigurieren der Bearertokenauthentifizierungsoptionen.

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für: