AuthenticationTokenExtensions.GetTokenAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
GetTokenAsync(AuthenticationManager, String) | |
GetTokenAsync(IAuthenticationService, HttpContext, String) |
Authentifie la demande à l’aide du schéma d’authentification spécifié et retourne la valeur du jeton. |
GetTokenAsync(AuthenticationManager, String, String) | |
GetTokenAsync(IAuthenticationService, HttpContext, String, String) |
Authentifie la demande à l’aide du schéma d’authentification spécifié et retourne la valeur du jeton. |
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)
Paramètres
- manager
- AuthenticationManager
- tokenName
- String
Retours
S’applique à
GetTokenAsync(IAuthenticationService, HttpContext, String)
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
Authentifie la demande à l’aide du schéma d’authentification spécifié et retourne la valeur du jeton.
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)
Paramètres
L’IAuthenticationServiceopérateur
- context
- HttpContext
Contexte HttpContext .
- tokenName
- String
Nom du jeton.
Retours
Valeur du jeton s’il est présent.
S’applique à
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)
Paramètres
- manager
- AuthenticationManager
- signInScheme
- String
- tokenName
- String
Retours
S’applique à
GetTokenAsync(IAuthenticationService, HttpContext, String, String)
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
Authentifie la demande à l’aide du schéma d’authentification spécifié et retourne la valeur du jeton.
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)
Paramètres
L’IAuthenticationServiceopérateur
- context
- HttpContext
Contexte HttpContext .
- scheme
- String
Nom du schéma d’authentification.
- tokenName
- String
Nom du jeton.
Retours
Valeur du jeton s’il est présent.