AuthenticationTokenExtensions.GetTokenAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
GetTokenAsync(AuthenticationManager, String) | |
GetTokenAsync(IAuthenticationService, HttpContext, String) |
Autentica la richiesta usando lo schema di autenticazione specificato e restituisce il valore per il token. |
GetTokenAsync(AuthenticationManager, String, String) | |
GetTokenAsync(IAuthenticationService, HttpContext, String, String) |
Autentica la richiesta usando lo schema di autenticazione specificato e restituisce il valore per il token. |
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)
Parametri
- manager
- AuthenticationManager
- tokenName
- String
Restituisce
Si applica a
GetTokenAsync(IAuthenticationService, HttpContext, String)
- Origine:
- TokenExtensions.cs
- Origine:
- TokenExtensions.cs
- Origine:
- TokenExtensions.cs
Autentica la richiesta usando lo schema di autenticazione specificato e restituisce il valore per il token.
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)
Parametri
Oggetto IAuthenticationService.
- context
- HttpContext
Contesto HttpContext .
- tokenName
- String
Nome del token.
Restituisce
Valore del token, se presente.
Si applica a
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)
Parametri
- manager
- AuthenticationManager
- signInScheme
- String
- tokenName
- String
Restituisce
Si applica a
GetTokenAsync(IAuthenticationService, HttpContext, String, String)
- Origine:
- TokenExtensions.cs
- Origine:
- TokenExtensions.cs
- Origine:
- TokenExtensions.cs
Autentica la richiesta usando lo schema di autenticazione specificato e restituisce il valore per il token.
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)
Parametri
Oggetto IAuthenticationService.
- context
- HttpContext
Contesto HttpContext .
- scheme
- String
Nome dello schema di autenticazione.
- tokenName
- String
Nome del token.
Restituisce
Valore del token, se presente.