OLD | NEW |
1 /* | 1 /* |
2 Copyright 2013 Google Inc | 2 Copyright 2013 Google Inc |
3 | 3 |
4 Licensed under the Apache License, Version 2.0 (the "License"); | 4 Licensed under the Apache License, Version 2.0 (the "License"); |
5 you may not use this file except in compliance with the License. | 5 you may not use this file except in compliance with the License. |
6 You may obtain a copy of the License at | 6 You may obtain a copy of the License at |
7 | 7 |
8 http://www.apache.org/licenses/LICENSE-2.0 | 8 http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 |
10 Unless required by applicable law or agreed to in writing, software | 10 Unless required by applicable law or agreed to in writing, software |
11 distributed under the License is distributed on an "AS IS" BASIS, | 11 distributed under the License is distributed on an "AS IS" BASIS, |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 See the License for the specific language governing permissions and | 13 See the License for the specific language governing permissions and |
14 limitations under the License. | 14 limitations under the License. |
15 */ | 15 */ |
16 | 16 |
17 namespace Google.Apis.Auth.OAuth2 | 17 namespace Google.Apis.Auth.OAuth2 |
18 { | 18 { |
19 /// <summary>Google OAuth2 constants.</summary> | 19 /// <summary>Google OAuth2 constants.</summary> |
20 public static class GoogleAuthConsts | 20 public static class GoogleAuthConsts |
21 { | 21 { |
22 /// <summary>The authorization code server URL.</summary> | 22 /// <summary>The authorization code server URL.</summary> |
23 public const string AuthorizationUrl = "https://accounts.google.com/o/oa
uth2/auth"; | 23 public const string AuthorizationUrl = "https://accounts.google.com/o/oa
uth2/auth"; |
24 | 24 |
25 /// <summary>The approval URL (used in the WinRT solution as a callback)
.</summary> | 25 /// <summary>The approval URL (used in the Windows solution as a callbac
k).</summary> |
26 public const string ApprovalUrl = "https://accounts.google.com/o/oauth2/
approval"; | 26 public const string ApprovalUrl = "https://accounts.google.com/o/oauth2/
approval"; |
27 | 27 |
28 /// <summary>The authorization token server URL</summary> | 28 /// <summary>The authorization token server URL</summary> |
29 public const string TokenUrl = "https://accounts.google.com/o/oauth2/tok
en"; | 29 public const string TokenUrl = "https://accounts.google.com/o/oauth2/tok
en"; |
30 | 30 |
31 /// <summary>The path to the Google revocation endpoint.</summary> | 31 /// <summary>The path to the Google revocation endpoint.</summary> |
32 public const string RevokeTokenUrl = "https://accounts.google.com/o/oaut
h2/revoke"; | 32 public const string RevokeTokenUrl = "https://accounts.google.com/o/oaut
h2/revoke"; |
33 | 33 |
34 /// <summary>Installed application redirect URI.</summary> | 34 /// <summary>Installed application redirect URI.</summary> |
35 public const string InstalledAppRedirectUri = "urn:ietf:wg:oauth:2.0:oob
"; | 35 public const string InstalledAppRedirectUri = "urn:ietf:wg:oauth:2.0:oob
"; |
36 | 36 |
37 /// <summary>Installed application localhost redirect URI.</summary> | 37 /// <summary>Installed application localhost redirect URI.</summary> |
38 public const string LocalhostRedirectUri = "http://localhost"; | 38 public const string LocalhostRedirectUri = "http://localhost"; |
39 } | 39 } |
40 } | 40 } |
OLD | NEW |