Class GoogleAuthorizationCodeFlow.Initializer (1.59.0)

public class Initializer : AuthorizationCodeFlow.Initializer

An initializer class for Google authorization code flow.

Inheritance

Object > AuthorizationCodeFlow.Initializer > GoogleAuthorizationCodeFlow.Initializer

Namespace

Google.Apis.Auth.OAuth2.Flows

Assembly

Google.Apis.Auth.dll

Constructors

Initializer()

public Initializer()

Constructs a new initializer. Sets Authorization server URL to OidcAuthorizationUrl, and Token server URL to OidcTokenUrl.

Initializer(String, String, String)

protected Initializer(string authorizationServerUrl, string tokenServerUrl, string revokeTokenUrl)

Constructs a new initializer.

Parameters
NameDescription
authorizationServerUrlString

Authorization server URL

tokenServerUrlString

Token server URL

revokeTokenUrlString

Revocation server URL

Remarks

This is mainly for internal testing at Google, where we occasionally need to use alternative oauth endpoints. This is not for general use.

Properties

IncludeGrantedScopes

public bool? IncludeGrantedScopes { get; set; }

Gets or sets the optional indicator for including granted scopes for incremental authorization.

Property Value
TypeDescription
Nullable<Boolean>

LoginHint

public string LoginHint { get; set; }

Gets or sets the login_hint.

Property Value
TypeDescription
String

Nonce

public string Nonce { get; set; }

Gets or sets the nonce.

Property Value
TypeDescription
String

ProjectId

public string ProjectId { get; set; }

The project ID associated with the credential using this flow.

Property Value
TypeDescription
String

Prompt

public string Prompt { get; set; }

Gets or sets the prompt for consent behaviour. Value can be null, "none", "consent", or "select_account". See OpenIDConnect documentation for details.

Property Value
TypeDescription
String

RevokeTokenUrl

public string RevokeTokenUrl { get; set; }

Gets or sets the token revocation URL.

Property Value
TypeDescription
String

UserDefinedQueryParams

public IEnumerable<KeyValuePair<string, string>> UserDefinedQueryParams { get; set; }

Gets or sets the optional user defined query parameters.

Property Value
TypeDescription
IEnumerable<KeyValuePair<String, String>>

Extension Method