public class Initializer : AuthorizationCodeFlow.InitializerAn initializer class for Google authorization code flow.
Namespace
Google.Apis.Auth.OAuth2.FlowsAssembly
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 |
StringAuthorization server URL |
tokenServerUrl |
StringToken server URL |
revokeTokenUrl |
StringRevocation server URL |
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 |
Nullable<Boolean> |
|
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 |
IEnumerable<KeyValuePair<String, String>> |
|