Google Api
This commit is contained in:
parent
e307811d89
commit
83f9fc1bd8
123 changed files with 12961 additions and 60 deletions
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
Copyright 2013 Google Inc
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
namespace Google.Apis.Auth.OAuth2
|
||||
{
|
||||
/// <summary>
|
||||
/// Google OAuth2 constants.
|
||||
/// Canonical source for these URLs is: https://accounts.google.com/.well-known/openid-configuration
|
||||
/// </summary>
|
||||
public static class GoogleAuthConsts
|
||||
{
|
||||
/// <summary>The authorization code server URL.</summary>
|
||||
public const string AuthorizationUrl = "https://accounts.google.com/o/oauth2/auth";
|
||||
|
||||
/// <summary>The OpenID Connect authorization code server URL.</summary>
|
||||
/// <remarks>
|
||||
/// Use of this <see cref="OidcAuthorizationUrl"/> is not 100% compatible with using
|
||||
/// <see cref="AuthorizationUrl"/>, so they are two distinct URLs.
|
||||
/// Internally within this library only this more up-to-date <see cref="OidcAuthorizationUrl"/> is used.
|
||||
/// </remarks>
|
||||
public const string OidcAuthorizationUrl = "https://accounts.google.com/o/oauth2/v2/auth";
|
||||
|
||||
/// <summary>The approval URL (used in the Windows solution as a callback).</summary>
|
||||
public const string ApprovalUrl = "https://accounts.google.com/o/oauth2/approval";
|
||||
|
||||
/// <summary>The authorization token server URL.</summary>
|
||||
public const string TokenUrl = "https://accounts.google.com/o/oauth2/token";
|
||||
|
||||
/// <summary>The OpenID Connect authorization token server URL.</summary>
|
||||
/// <remarks>
|
||||
/// Use of this <see cref="OidcTokenUrl"/> is not 100% compatible with using
|
||||
/// <see cref="TokenUrl"/>, so they are two distinct URLs.
|
||||
/// Internally within this library only this more up-to-date <see cref="OidcTokenUrl"/> is used.
|
||||
/// </remarks>
|
||||
public const string OidcTokenUrl = "https://www.googleapis.com/oauth2/v4/token";
|
||||
|
||||
/// <summary>The Compute Engine authorization token server URL</summary>
|
||||
public const string ComputeTokenUrl =
|
||||
"http://metadata/computeMetadata/v1/instance/service-accounts/default/token";
|
||||
|
||||
/// <summary>The path to the Google revocation endpoint.</summary>
|
||||
public const string RevokeTokenUrl = "https://accounts.google.com/o/oauth2/revoke";
|
||||
|
||||
/// <summary>The OpenID Connect Json Web Key Set (jwks) URL.</summary>
|
||||
public const string JsonWebKeySetUrl = "https://www.googleapis.com/oauth2/v3/certs";
|
||||
|
||||
/// <summary>Installed application redirect URI.</summary>
|
||||
public const string InstalledAppRedirectUri = "urn:ietf:wg:oauth:2.0:oob";
|
||||
|
||||
/// <summary>Installed application localhost redirect URI.</summary>
|
||||
public const string LocalhostRedirectUri = "http://localhost";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue