共用方式為


OpenIdConnectHandler.RedeemAuthorizationCodeAsync 方法

定義

在權杖端點兌換權杖的授權碼。

protected:
 virtual System::Threading::Tasks::Task<Microsoft::IdentityModel::Protocols::OpenIdConnect::OpenIdConnectMessage ^> ^ RedeemAuthorizationCodeAsync(Microsoft::IdentityModel::Protocols::OpenIdConnect::OpenIdConnectMessage ^ tokenEndpointRequest);
protected virtual System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage> RedeemAuthorizationCodeAsync (Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage tokenEndpointRequest);
abstract member RedeemAuthorizationCodeAsync : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage>
override this.RedeemAuthorizationCodeAsync : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage>
Protected Overridable Function RedeemAuthorizationCodeAsync (tokenEndpointRequest As OpenIdConnectMessage) As Task(Of OpenIdConnectMessage)

參數

tokenEndpointRequest
OpenIdConnectMessage

將傳送至權杖端點並可供自訂的要求。

傳回

OpenIdConnect 訊息內具有權杖。

適用於