AuthenticationTokenExtensions.GetTokenAsync 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
GetTokenAsync(AuthenticationManager, String) | |
GetTokenAsync(IAuthenticationService, HttpContext, String) |
Uwierzytelnia żądanie przy użyciu określonego schematu uwierzytelniania i zwraca wartość tokenu. |
GetTokenAsync(AuthenticationManager, String, String) | |
GetTokenAsync(IAuthenticationService, HttpContext, String, String) |
Uwierzytelnia żądanie przy użyciu określonego schematu uwierzytelniania i zwraca wartość tokenu. |
GetTokenAsync(AuthenticationManager, String)
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::String ^> ^ GetTokenAsync(Microsoft::AspNetCore::Http::Authentication::AuthenticationManager ^ manager, System::String ^ tokenName);
public static System.Threading.Tasks.Task<string> GetTokenAsync (this Microsoft.AspNetCore.Http.Authentication.AuthenticationManager manager, string tokenName);
static member GetTokenAsync : Microsoft.AspNetCore.Http.Authentication.AuthenticationManager * string -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function GetTokenAsync (manager As AuthenticationManager, tokenName As String) As Task(Of String)
Parametry
- manager
- AuthenticationManager
- tokenName
- String
Zwraca
Dotyczy
GetTokenAsync(IAuthenticationService, HttpContext, String)
- Źródło:
- TokenExtensions.cs
- Źródło:
- TokenExtensions.cs
- Źródło:
- TokenExtensions.cs
Uwierzytelnia żądanie przy użyciu określonego schematu uwierzytelniania i zwraca wartość tokenu.
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::String ^> ^ GetTokenAsync(Microsoft::AspNetCore::Authentication::IAuthenticationService ^ auth, Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ tokenName);
public static System.Threading.Tasks.Task<string> GetTokenAsync (this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string tokenName);
public static System.Threading.Tasks.Task<string?> GetTokenAsync (this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string tokenName);
static member GetTokenAsync : Microsoft.AspNetCore.Authentication.IAuthenticationService * Microsoft.AspNetCore.Http.HttpContext * string -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function GetTokenAsync (auth As IAuthenticationService, context As HttpContext, tokenName As String) As Task(Of String)
Parametry
Element IAuthenticationService.
- context
- HttpContext
Kontekst HttpContext .
- tokenName
- String
Nazwa tokenu.
Zwraca
Wartość tokenu, jeśli istnieje.
Dotyczy
GetTokenAsync(AuthenticationManager, String, String)
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::String ^> ^ GetTokenAsync(Microsoft::AspNetCore::Http::Authentication::AuthenticationManager ^ manager, System::String ^ signInScheme, System::String ^ tokenName);
public static System.Threading.Tasks.Task<string> GetTokenAsync (this Microsoft.AspNetCore.Http.Authentication.AuthenticationManager manager, string signInScheme, string tokenName);
static member GetTokenAsync : Microsoft.AspNetCore.Http.Authentication.AuthenticationManager * string * string -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function GetTokenAsync (manager As AuthenticationManager, signInScheme As String, tokenName As String) As Task(Of String)
Parametry
- manager
- AuthenticationManager
- signInScheme
- String
- tokenName
- String
Zwraca
Dotyczy
GetTokenAsync(IAuthenticationService, HttpContext, String, String)
- Źródło:
- TokenExtensions.cs
- Źródło:
- TokenExtensions.cs
- Źródło:
- TokenExtensions.cs
Uwierzytelnia żądanie przy użyciu określonego schematu uwierzytelniania i zwraca wartość tokenu.
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<System::String ^> ^ GetTokenAsync(Microsoft::AspNetCore::Authentication::IAuthenticationService ^ auth, Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme, System::String ^ tokenName);
public static System.Threading.Tasks.Task<string> GetTokenAsync (this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string scheme, string tokenName);
public static System.Threading.Tasks.Task<string?> GetTokenAsync (this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string? scheme, string tokenName);
static member GetTokenAsync : Microsoft.AspNetCore.Authentication.IAuthenticationService * Microsoft.AspNetCore.Http.HttpContext * string * string -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function GetTokenAsync (auth As IAuthenticationService, context As HttpContext, scheme As String, tokenName As String) As Task(Of String)
Parametry
Element IAuthenticationService.
- context
- HttpContext
Kontekst HttpContext .
- scheme
- String
Nazwa schematu uwierzytelniania.
- tokenName
- String
Nazwa tokenu.
Zwraca
Wartość tokenu, jeśli istnieje.