Show / Hide Table of Contents

Class AuthorizationCodeTokenRequest

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
Inherited Members
TokenRequest.Scope
TokenRequest.GrantType
TokenRequest.ClientId
TokenRequest.ClientSecret
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Auth.OAuth2.Requests
Assembly: Google.Apis.Auth.dll
Syntax
public class AuthorizationCodeTokenRequest : TokenRequest

Constructors

AuthorizationCodeTokenRequest()

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

Declaration
public AuthorizationCodeTokenRequest()

Properties

Code

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

Declaration
[RequestParameter("code")]
public string Code { get; set; }
Property Value
Type Description
string

CodeVerifier

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.

Declaration
[RequestParameter("code_verifier")]
public string CodeVerifier { get; set; }
Property Value
Type Description
string

RedirectUri

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

Declaration
[RequestParameter("redirect_uri")]
public string RedirectUri { get; set; }
Property Value
Type Description
string

Extension Methods

TokenRequestExtenstions.ExecuteAsync(TokenRequest, HttpClient, string, CancellationToken, IClock)
In this article
Back to top Generated by DocFX