AuthorizationCodeReceivedContext.HandleCodeRedemption Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HandleCodeRedemption() |
Tells the handler to skip the code redemption process. The developer may have redeemed the code themselves, or decided that the redemption was not required. If tokens were retrieved that are needed for further processing then call one of the overloads that allows providing tokens. An IdToken is required if one had not been previously received in the authorization response. An access token can optionally be provided for the handler to contact the user-info endpoint. Calling this is the same as setting TokenEndpointResponse. |
HandleCodeRedemption(OpenIdConnectMessage) |
Tells the handler to skip the code redemption process. The developer may have redeemed the code themselves, or decided that the redemption was not required. If tokens were retrieved that are needed for further processing then call one of the overloads that allows providing tokens. An IdToken is required if one had not been previously received in the authorization response. An access token can optionally be provided for the handler to contact the user-info endpoint. Calling this is the same as setting TokenEndpointResponse. |
HandleCodeRedemption(String, String) |
Tells the handler to skip the code redemption process. The developer may have redeemed the code themselves, or decided that the redemption was not required. If tokens were retrieved that are needed for further processing then call one of the overloads that allows providing tokens. An IdToken is required if one had not been previously received in the authorization response. An access token can optionally be provided for the handler to contact the user-info endpoint. Calling this is the same as setting TokenEndpointResponse. |
HandleCodeRedemption()
Tells the handler to skip the code redemption process. The developer may have redeemed the code themselves, or decided that the redemption was not required. If tokens were retrieved that are needed for further processing then call one of the overloads that allows providing tokens. An IdToken is required if one had not been previously received in the authorization response. An access token can optionally be provided for the handler to contact the user-info endpoint. Calling this is the same as setting TokenEndpointResponse.
public:
void HandleCodeRedemption();
public void HandleCodeRedemption ();
member this.HandleCodeRedemption : unit -> unit
Public Sub HandleCodeRedemption ()
Applies to
HandleCodeRedemption(OpenIdConnectMessage)
Tells the handler to skip the code redemption process. The developer may have redeemed the code themselves, or decided that the redemption was not required. If tokens were retrieved that are needed for further processing then call one of the overloads that allows providing tokens. An IdToken is required if one had not been previously received in the authorization response. An access token can optionally be provided for the handler to contact the user-info endpoint. Calling this is the same as setting TokenEndpointResponse.
public:
void HandleCodeRedemption(Microsoft::IdentityModel::Protocols::OpenIdConnect::OpenIdConnectMessage ^ tokenEndpointResponse);
public void HandleCodeRedemption (Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage tokenEndpointResponse);
member this.HandleCodeRedemption : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectMessage -> unit
Public Sub HandleCodeRedemption (tokenEndpointResponse As OpenIdConnectMessage)
Parameters
- tokenEndpointResponse
- OpenIdConnectMessage
Applies to
HandleCodeRedemption(String, String)
Tells the handler to skip the code redemption process. The developer may have redeemed the code themselves, or decided that the redemption was not required. If tokens were retrieved that are needed for further processing then call one of the overloads that allows providing tokens. An IdToken is required if one had not been previously received in the authorization response. An access token can optionally be provided for the handler to contact the user-info endpoint. Calling this is the same as setting TokenEndpointResponse.
public:
void HandleCodeRedemption(System::String ^ accessToken, System::String ^ idToken);
public void HandleCodeRedemption (string accessToken, string idToken);
member this.HandleCodeRedemption : string * string -> unit
Public Sub HandleCodeRedemption (accessToken As String, idToken As String)
Parameters
- accessToken
- String
- idToken
- String