Class AuthorizationCodeTokenRequest (1.68.0)

public class AuthorizationCodeTokenRequest : TokenRequest

OAuth 2.0 request for an access token using an authorization code as specified in http://tools.ietf.org/html/rfc6749#section-4.1.3.

Inheritance

object > TokenRequest > AuthorizationCodeTokenRequest

Namespace

Google.Apis.Auth.OAuth2.Requests

Assembly

Google.Apis.Auth.dll

Constructors

AuthorizationCodeTokenRequest()

public AuthorizationCodeTokenRequest()

Constructs a new authorization code token request and sets grant_type to authorization_code.

Properties

Code

[RequestParameter("code")]
public string Code { get; set; }

Gets or sets the authorization code received from the authorization server.

Property Value
Type Description
string

CodeVerifier

[RequestParameter("code_verifier")]
public string CodeVerifier { get; set; }

Gets or sets the code verifier matching the code challenge in the authorization request. See https://developers.google.com/identity/protocols/oauth2/native-app#exchange-authorization-code for more information.

Property Value
Type Description
string

RedirectUri

[RequestParameter("redirect_uri")]
public string RedirectUri { get; set; }

Gets or sets the redirect URI parameter matching the redirect URI parameter in the authorization request.

Property Value
Type Description
string

Extension Methods