JwtBearerExtensions.AddJwtBearer Metoda

Definice

Přetížení

AddJwtBearer(AuthenticationBuilder)

Povolí ověřování nosných souborů JWT pomocí výchozího schématu AuthenticationScheme.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

Povolí ověřování nosných souborů JWT pomocí výchozího schématu AuthenticationScheme.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

AddJwtBearer(AuthenticationBuilder, String)

Umožňuje ověřování nosných objektů JWT pomocí předdefinovaných schémat.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

Povolí ověřování nosných objektů JWT pomocí zadaného schématu.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>)

Povolí ověřování nosných objektů JWT pomocí zadaného schématu.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

AddJwtBearer(AuthenticationBuilder)

Povolí ověřování nosných souborů JWT pomocí výchozího schématu AuthenticationScheme.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

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

Parametry

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

Povolí ověřování nosných souborů JWT pomocí výchozího schématu AuthenticationScheme.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, configureOptions As Action(Of JwtBearerOptions)) As AuthenticationBuilder

Parametry

configureOptions
Action<JwtBearerOptions>

Delegát, který umožňuje konfiguraci JwtBearerOptions.

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro

AddJwtBearer(AuthenticationBuilder, String)

Umožňuje ověřování nosných objektů JWT pomocí předdefinovaných schémat.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, authenticationScheme As String) As AuthenticationBuilder

Parametry

authenticationScheme
String

Schéma ověřování.

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

Povolí ověřování nosných objektů JWT pomocí zadaného schématu.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of JwtBearerOptions)) As AuthenticationBuilder

Parametry

authenticationScheme
String

Schéma ověřování.

configureOptions
Action<JwtBearerOptions>

Delegát, který umožňuje konfiguraci JwtBearerOptions.

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro

AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>)

Povolí ověřování nosných objektů JWT pomocí zadaného schématu.

Nosné ověřování JWT provádí ověřování extrahováním a ověřením tokenu JWT z hlavičky žádosti o autorizaci .

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of JwtBearerOptions)) As AuthenticationBuilder

Parametry

authenticationScheme
String

Schéma ověřování.

displayName
String

Zobrazovaný název obslužné rutiny ověřování.

configureOptions
Action<JwtBearerOptions>

Delegát, který umožňuje konfiguraci JwtBearerOptions.

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro