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 消息。

适用于