Class GoogleAuthConsts
Google OAuth2 constants. Canonical source for these URLs is: https://accounts.google.com/.well-known/openid-configuration
Inheritance
Inherited Members
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public static class GoogleAuthConsts
Fields
ApprovalUrl
The approval URL (used in the Windows solution as a callback).
Declaration
public const string ApprovalUrl = "https://accounts.google.com/o/oauth2/approval"
Field Value
Type | Description |
---|---|
System.String |
AuthorizationUrl
The authorization code server URL.
Declaration
public const string AuthorizationUrl = "https://accounts.google.com/o/oauth2/auth"
Field Value
Type | Description |
---|---|
System.String |
ComputeTokenUrl
The Compute Engine authorization token server URL
Declaration
public const string ComputeTokenUrl = "http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token"
Field Value
Type | Description |
---|---|
System.String |
Remarks
IP address instead of name to avoid DNS resolution
InstalledAppRedirectUri
Installed application redirect URI.
Declaration
public const string InstalledAppRedirectUri = "urn:ietf:wg:oauth:2.0:oob"
Field Value
Type | Description |
---|---|
System.String |
JsonWebKeySetUrl
The OpenID Connect Json Web Key Set (jwks) URL.
Declaration
public const string JsonWebKeySetUrl = "https://www.googleapis.com/oauth2/v3/certs"
Field Value
Type | Description |
---|---|
System.String |
LocalhostRedirectUri
Installed application localhost redirect URI.
Declaration
public const string LocalhostRedirectUri = "http://localhost"
Field Value
Type | Description |
---|---|
System.String |
OidcAuthorizationUrl
The OpenID Connect authorization code server URL.
Declaration
public const string OidcAuthorizationUrl = "https://accounts.google.com/o/oauth2/v2/auth"
Field Value
Type | Description |
---|---|
System.String |
Remarks
Use of this OidcAuthorizationUrl is not 100% compatible with using AuthorizationUrl, so they are two distinct URLs. Internally within this library only this more up-to-date OidcAuthorizationUrl is used.
OidcTokenUrl
The OpenID Connect authorization token server URL.
Declaration
public const string OidcTokenUrl = "https://oauth2.googleapis.com/token"
Field Value
Type | Description |
---|---|
System.String |
Remarks
Use of this OidcTokenUrl is not 100% compatible with using TokenUrl, so they are two distinct URLs. Internally within this library only this more up-to-date OidcTokenUrl is used.
RevokeTokenUrl
The path to the Google revocation endpoint.
Declaration
public const string RevokeTokenUrl = "https://oauth2.googleapis.com/revoke"
Field Value
Type | Description |
---|---|
System.String |
TokenUrl
The authorization token server URL.
Declaration
public const string TokenUrl = "https://accounts.google.com/o/oauth2/token"
Field Value
Type | Description |
---|---|
System.String |