BearerTokenExtensions.AddBearerToken Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
AddBearerToken(AuthenticationBuilder) |
Dodaje uwierzytelnianie tokenu elementu nośnego. Schemat domyślny jest określony przez AuthenticationScheme. Tokeny elementu nośnego można uzyskać, wywołując funkcję SignInAsync(HttpContext, String, ClaimsPrincipal). |
AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>) |
Dodaje uwierzytelnianie tokenu elementu nośnego. Schemat domyślny jest określony przez AuthenticationScheme. Tokeny elementu nośnego można uzyskać, wywołując funkcję SignInAsync(HttpContext, String, ClaimsPrincipal). |
AddBearerToken(AuthenticationBuilder, String) |
Dodaje uwierzytelnianie tokenu elementu nośnego. Tokeny elementu nośnego można uzyskać, wywołując funkcję SignInAsync(HttpContext, String, ClaimsPrincipal). |
AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>) |
Dodaje uwierzytelnianie tokenu elementu nośnego. Tokeny elementu nośnego można uzyskać, wywołując funkcję SignInAsync(HttpContext, String, ClaimsPrincipal). |
AddBearerToken(AuthenticationBuilder)
Dodaje uwierzytelnianie tokenu elementu nośnego. Schemat domyślny jest określony przez AuthenticationScheme.
Tokeny elementu nośnego można uzyskać, wywołując funkcję 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
Parametry
- builder
- AuthenticationBuilder
Element AuthenticationBuilder.
Zwraca
Odwołanie do builder
po zakończeniu operacji.
Dotyczy
AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)
Dodaje uwierzytelnianie tokenu elementu nośnego. Schemat domyślny jest określony przez AuthenticationScheme.
Tokeny elementu nośnego można uzyskać, wywołując funkcję 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
Parametry
- builder
- AuthenticationBuilder
Element AuthenticationBuilder.
- configure
- Action<BearerTokenOptions>
Akcja używana do konfigurowania opcji uwierzytelniania tokenu elementu nośnego.
Zwraca
Odwołanie do builder
po zakończeniu operacji.
Dotyczy
AddBearerToken(AuthenticationBuilder, String)
Dodaje uwierzytelnianie tokenu elementu nośnego.
Tokeny elementu nośnego można uzyskać, wywołując funkcję 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
Parametry
- builder
- AuthenticationBuilder
Element AuthenticationBuilder.
- authenticationScheme
- String
Schemat uwierzytelniania.
Zwraca
Odwołanie do builder
po zakończeniu operacji.
Dotyczy
AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)
Dodaje uwierzytelnianie tokenu elementu nośnego.
Tokeny elementu nośnego można uzyskać, wywołując funkcję 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
Parametry
- builder
- AuthenticationBuilder
Element AuthenticationBuilder.
- authenticationScheme
- String
Schemat uwierzytelniania.
- configure
- Action<BearerTokenOptions>
Akcja używana do konfigurowania opcji uwierzytelniania tokenu elementu nośnego.
Zwraca
Odwołanie do builder
po zakończeniu operacji.
Dotyczy
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla