Bagikan melalui


BearerTokenExtensions.AddBearerToken Metode

Definisi

Overload

AddBearerToken(AuthenticationBuilder)

Menambahkan autentikasi token pembawa. Skema default ditentukan oleh AuthenticationScheme.

Token pembawa dapat diperoleh dengan memanggil SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Menambahkan autentikasi token pembawa. Skema default ditentukan oleh AuthenticationScheme.

Token pembawa dapat diperoleh dengan memanggil SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String)

Menambahkan autentikasi token pembawa.

Token pembawa dapat diperoleh dengan memanggil SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Menambahkan autentikasi token pembawa.

Token pembawa dapat diperoleh dengan memanggil SignInAsync(HttpContext, String, ClaimsPrincipal).

AddBearerToken(AuthenticationBuilder)

Sumber:
BearerTokenExtensions.cs

Menambahkan autentikasi token pembawa. Skema default ditentukan oleh AuthenticationScheme.

Token pembawa dapat diperoleh dengan memanggil 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

Parameter

Mengembalikan

Referensi ke builder setelah operasi selesai.

Berlaku untuk

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

Sumber:
BearerTokenExtensions.cs

Menambahkan autentikasi token pembawa. Skema default ditentukan oleh AuthenticationScheme.

Token pembawa dapat diperoleh dengan memanggil 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

Parameter

configure
Action<BearerTokenOptions>

Tindakan yang digunakan untuk mengonfigurasi opsi autentikasi token pembawa.

Mengembalikan

Referensi ke builder setelah operasi selesai.

Berlaku untuk

AddBearerToken(AuthenticationBuilder, String)

Sumber:
BearerTokenExtensions.cs

Menambahkan autentikasi token pembawa.

Token pembawa dapat diperoleh dengan memanggil 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

Parameter

authenticationScheme
String

Skema autentikasi.

Mengembalikan

Referensi ke builder setelah operasi selesai.

Berlaku untuk

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

Sumber:
BearerTokenExtensions.cs

Menambahkan autentikasi token pembawa.

Token pembawa dapat diperoleh dengan memanggil 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

Parameter

authenticationScheme
String

Skema autentikasi.

configure
Action<BearerTokenOptions>

Tindakan yang digunakan untuk mengonfigurasi opsi autentikasi token pembawa.

Mengembalikan

Referensi ke builder setelah operasi selesai.

Berlaku untuk