Show / Hide Table of Contents

Class TokenRequest

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

Inheritance
object
TokenRequest
AuthorizationCodeTokenRequest
GoogleAssertionTokenRequest
RefreshTokenRequest
Inherited Members
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 TokenRequest

Properties

ClientId

Gets or sets the client Identifier.

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

ClientSecret

Gets or sets the client Secret.

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

GrantType

Gets or sets the Grant type. Sets authorization_code or password or client_credentials or refresh_token or absolute URI of the extension grant type.

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

Scope

Gets or sets space-separated list of scopes as specified in http://tools.ietf.org/html/rfc6749#section-3.3.

Declaration
[RequestParameter("scope")]
public string Scope { 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