次の方法で共有


OAuthHandler<TOptions>.ExchangeCodeAsync メソッド

定義

オーバーロード

ExchangeCodeAsync(OAuthCodeExchangeContext)

リモート プロバイダーからの承認トークンの承認コードを交換します。

ExchangeCodeAsync(String, String)

ExchangeCodeAsync(OAuthCodeExchangeContext)

ソース:
OAuthHandler.cs

リモート プロバイダーからの承認トークンの承認コードを交換します。

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)

パラメーター

戻り値

応答 OAuthTokenResponse

適用対象

ExchangeCodeAsync(String, String)

ソース:
OAuthHandler.cs
ソース:
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)

パラメーター

code
String
redirectUri
String

戻り値

適用対象