OAuthHandler<TOptions>.ExchangeCodeAsync 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
ExchangeCodeAsync(OAuthCodeExchangeContext) |
Échange le code d’autorisation contre un jeton d’autorisation du fournisseur distant. |
ExchangeCodeAsync(String, String) |
ExchangeCodeAsync(OAuthCodeExchangeContext)
- Source:
- OAuthHandler.cs
Échange le code d’autorisation contre un jeton d’autorisation du fournisseur distant.
protected:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::OAuth::OAuthTokenResponse ^> ^ ExchangeCodeAsync(Microsoft::AspNetCore::Authentication::OAuth::OAuthCodeExchangeContext ^ context);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse> ExchangeCodeAsync (Microsoft.AspNetCore.Authentication.OAuth.OAuthCodeExchangeContext context);
abstract member ExchangeCodeAsync : Microsoft.AspNetCore.Authentication.OAuth.OAuthCodeExchangeContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse>
override this.ExchangeCodeAsync : Microsoft.AspNetCore.Authentication.OAuth.OAuthCodeExchangeContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse>
Protected Overridable Function ExchangeCodeAsync (context As OAuthCodeExchangeContext) As Task(Of OAuthTokenResponse)
Paramètres
- context
- OAuthCodeExchangeContext
L’OAuthCodeExchangeContextopérateur
Retours
OAuthTokenResponseRéponse .
S’applique à
ExchangeCodeAsync(String, String)
- Source:
- OAuthHandler.cs
- Source:
- OAuthHandler.cs
protected:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::OAuth::OAuthTokenResponse ^> ^ ExchangeCodeAsync(System::String ^ code, System::String ^ redirectUri);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse> ExchangeCodeAsync (string code, string redirectUri);
abstract member ExchangeCodeAsync : string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse>
override this.ExchangeCodeAsync : string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse>
Protected Overridable Function ExchangeCodeAsync (code As String, redirectUri As String) As Task(Of OAuthTokenResponse)
Paramètres
- code
- String
- redirectUri
- String