Class GoogleAuthorizationCodeFlow.Initializer (1.60.0)

public class GoogleAuthorizationCodeFlow.Initializer : AuthorizationCodeFlow.Initializer

An initializer class for Google authorization code flow.

Inheritance

object > AuthorizationCodeFlowInitializer > GoogleAuthorizationCodeFlow.Initializer

Namespace

GoogleApisAuthOAuth2Flows

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
bool

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
IEnumerableKeyValuePairstringstring

Extension Method