Class GoogleAuthorizationCodeFlow.Initializer (1.68.0)

public class GoogleAuthorizationCodeFlow.Initializer : AuthorizationCodeFlow.Initializer

An initializer class for Google authorization code flow.

Inheritance

object > AuthorizationCodeFlowInitializer > 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
Name Description
authorizationServerUrl string

Authorization server URL

tokenServerUrl string

Token server URL

revokeTokenUrl string

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
Type Description
bool

LoginHint

public string LoginHint { get; set; }

Gets or sets the login_hint.

Property Value
Type Description
string

Nonce

public string Nonce { get; set; }

Gets or sets the nonce.

Property Value
Type Description
string

ProjectId

public string ProjectId { get; set; }

The project ID associated with the credential using this flow.

Property Value
Type Description
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
Type Description
string

RevokeTokenUrl

public string RevokeTokenUrl { get; set; }

Gets or sets the token revocation URL.

Property Value
Type Description
string

UserDefinedQueryParams

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

Gets or sets the optional user defined query parameters.

Property Value
Type Description
IEnumerableKeyValuePairstringstring

Extension Method