Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: google_apis/gaia/gaia_constants.cc

Issue 14169010: Remove support for ClientOAuth from GaiaAuthFetcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « google_apis/gaia/gaia_constants.h ('k') | google_apis/gaia/gaia_urls.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Constants definitions 5 // Constants definitions
6 6
7 #include "google_apis/gaia/gaia_constants.h" 7 #include "google_apis/gaia/gaia_constants.h"
8 8
9 namespace GaiaConstants { 9 namespace GaiaConstants {
10 10
(...skipping 30 matching lines...) Expand all
41 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken"; 41 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken";
42 42
43 // Used to construct a channel ID for push messaging. 43 // Used to construct a channel ID for push messaging.
44 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId"; 44 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId";
45 45
46 // Used to build ClientOAuth requests. These are the names of keys used when 46 // Used to build ClientOAuth requests. These are the names of keys used when
47 // building base::DictionaryValue that represent the json data that makes up 47 // building base::DictionaryValue that represent the json data that makes up
48 // the ClientOAuth endpoint protocol. The comment above each constant explains 48 // the ClientOAuth endpoint protocol. The comment above each constant explains
49 // what value is associated with that key. 49 // what value is associated with that key.
50 50
51 // Canonical email and password of the account to sign in. 51 // Canonical email of the account to sign in.
52 const char kClientOAuthEmailKey[] = "email"; 52 const char kClientOAuthEmailKey[] = "email";
53 const char kClientOAuthPasswordKey[] = "password";
54
55 // Scopes required for the returned oauth2 token. For GaiaAuthFetcher, the
56 // value is the OAuthLogin scope.
57 const char kClientOAuthScopesKey[] = "scopes";
58
59 // Chrome's client id from the API console.
60 const char kClientOAuthOAuth2ClientIdKey[] = "oauth2_client_id";
61
62 // A friendly name to describe this instance of chrome to the user.
63 const char kClientOAuthFriendlyDeviceNameKey[] = "friendly_device_name";
64
65 // A list of challenge types that chrome accepts. At a minimum this must
66 // include Captcha. To support OTPs should also include TwoFactor.
67 const char kClientOAuthAcceptsChallengesKey[] = "accepts_challenges";
68
69 // The locale of the browser, so that ClientOAuth can return localized error
70 // messages.
71 const char kClientOAuthLocaleKey[] = "locale";
72
73 // The name of the web-based fallback method to use if ClientOAuth decides it
74 // cannot continue otherwise. Note that this name has a dot because its in
75 // sub dictionary.
76 const char kClientOAuthFallbackNameKey[] = "fallback.name";
77
78 // The following three key names are used with ClientOAuth challenge responses.
79
80 // The type of response. Must match the name given in the response to the
81 // original ClientOAuth request and is a subset of the challenge types listed
82 // in kClientOAuthAcceptsChallengesKey from that original request.
83 const char kClientOAuthNameKey[] = "name";
84
85 // The challenge token received in the original ClientOAuth request.
86 const char kClientOAuthChallengeTokenKey[] = "challenge_token";
87
88 // The dictionary that contains the challenge response.
89 const char kClientOAuthchallengeReplyKey[] = "challenge_reply";
90 53
91 } // namespace GaiaConstants 54 } // namespace GaiaConstants
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_constants.h ('k') | google_apis/gaia/gaia_urls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698