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

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

Issue 15148007: Identity API: web-based scope approval dialogs for getAuthToken (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address reviewer comments 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
« no previous file with comments | « google_apis/gaia/gaia_urls.h ('k') | no next file » | 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 #include "google_apis/gaia/gaia_urls.h" 5 #include "google_apis/gaia/gaia_urls.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "google_apis/gaia/gaia_switches.h" 8 #include "google_apis/gaia/gaia_switches.h"
9 #include "google_apis/google_api_keys.h" 9 #include "google_apis/google_api_keys.h"
10 10
(...skipping 13 matching lines...) Expand all
24 const char kTokenAuthUrlSuffix[] = "/TokenAuth"; 24 const char kTokenAuthUrlSuffix[] = "/TokenAuth";
25 const char kMergeSessionUrlSuffix[] = "/MergeSession"; 25 const char kMergeSessionUrlSuffix[] = "/MergeSession";
26 const char kOAuthGetAccessTokenUrlSuffix[] = "/OAuthGetAccessToken"; 26 const char kOAuthGetAccessTokenUrlSuffix[] = "/OAuthGetAccessToken";
27 const char kOAuthWrapBridgeUrlSuffix[] = "/OAuthWrapBridge"; 27 const char kOAuthWrapBridgeUrlSuffix[] = "/OAuthWrapBridge";
28 const char kOAuth1LoginUrlSuffix[] = "/OAuthLogin"; 28 const char kOAuth1LoginUrlSuffix[] = "/OAuthLogin";
29 const char kOAuthRevokeTokenUrlSuffix[] = "/AuthSubRevokeToken"; 29 const char kOAuthRevokeTokenUrlSuffix[] = "/AuthSubRevokeToken";
30 30
31 // API calls from accounts.google.com (LSO) 31 // API calls from accounts.google.com (LSO)
32 const char kGetOAuthTokenUrlSuffix[] = "/o/oauth/GetOAuthToken/"; 32 const char kGetOAuthTokenUrlSuffix[] = "/o/oauth/GetOAuthToken/";
33 const char kClientLoginToOAuth2UrlSuffix[] = "/o/oauth2/programmatic_auth"; 33 const char kClientLoginToOAuth2UrlSuffix[] = "/o/oauth2/programmatic_auth";
34 const char kOAuth2AuthUrlSuffix[] = "/o/oauth2/auth";
34 const char kOAuth2RevokeUrlSuffix[] = "/o/oauth2/revoke"; 35 const char kOAuth2RevokeUrlSuffix[] = "/o/oauth2/revoke";
35 const char kOAuth2TokenUrlSuffix[] = "/o/oauth2/token"; 36 const char kOAuth2TokenUrlSuffix[] = "/o/oauth2/token";
36 const char kClientOAuthUrlSuffix[] = "/ClientOAuth"; 37 const char kClientOAuthUrlSuffix[] = "/ClientOAuth";
37 38
38 // API calls from www.googleapis.com 39 // API calls from www.googleapis.com
39 const char kOAuth2IssueTokenUrlSuffix[] = "/oauth2/v2/IssueToken"; 40 const char kOAuth2IssueTokenUrlSuffix[] = "/oauth2/v2/IssueToken";
40 const char kOAuthUserInfoUrlSuffix[] = "/oauth2/v1/userinfo"; 41 const char kOAuthUserInfoUrlSuffix[] = "/oauth2/v1/userinfo";
41 const char kOAuthWrapBridgeUserInfoScopeUrlSuffix[] = "/auth/userinfo.email"; 42 const char kOAuthWrapBridgeUserInfoScopeUrlSuffix[] = "/auth/userinfo.email";
42 43
43 const char kOAuth1LoginScope[] = 44 const char kOAuth1LoginScope[] =
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 oauth_get_access_token_url_ = gaia_url_base + 110 oauth_get_access_token_url_ = gaia_url_base +
110 kOAuthGetAccessTokenUrlSuffix; 111 kOAuthGetAccessTokenUrlSuffix;
111 oauth_wrap_bridge_url_ = gaia_url_base + kOAuthWrapBridgeUrlSuffix; 112 oauth_wrap_bridge_url_ = gaia_url_base + kOAuthWrapBridgeUrlSuffix;
112 oauth_revoke_token_url_ = gaia_url_base + kOAuthRevokeTokenUrlSuffix; 113 oauth_revoke_token_url_ = gaia_url_base + kOAuthRevokeTokenUrlSuffix;
113 oauth1_login_url_ = gaia_url_base + kOAuth1LoginUrlSuffix; 114 oauth1_login_url_ = gaia_url_base + kOAuth1LoginUrlSuffix;
114 115
115 // URLs from accounts.google.com (LSO). 116 // URLs from accounts.google.com (LSO).
116 get_oauth_token_url_ = lso_origin_url_ + kGetOAuthTokenUrlSuffix; 117 get_oauth_token_url_ = lso_origin_url_ + kGetOAuthTokenUrlSuffix;
117 std::string client_login_to_oauth2_url = lso_origin_url_ + 118 std::string client_login_to_oauth2_url = lso_origin_url_ +
118 kClientLoginToOAuth2UrlSuffix; 119 kClientLoginToOAuth2UrlSuffix;
120 oauth2_auth_url_ = lso_origin_url_ + kOAuth2AuthUrlSuffix;
119 std::string oauth2_token_url = lso_origin_url_ + kOAuth2TokenUrlSuffix; 121 std::string oauth2_token_url = lso_origin_url_ + kOAuth2TokenUrlSuffix;
120 oauth2_revoke_url_ = lso_origin_url_ + kOAuth2RevokeUrlSuffix; 122 oauth2_revoke_url_ = lso_origin_url_ + kOAuth2RevokeUrlSuffix;
121 123
122 // URLs from www.googleapis.com. 124 // URLs from www.googleapis.com.
123 oauth_wrap_bridge_user_info_scope_ = google_apis_origin_url_ + 125 oauth_wrap_bridge_user_info_scope_ = google_apis_origin_url_ +
124 kOAuthWrapBridgeUserInfoScopeUrlSuffix; 126 kOAuthWrapBridgeUserInfoScopeUrlSuffix;
125 std::string oauth2_issue_token_url = google_apis_origin_url_ + 127 std::string oauth2_issue_token_url = google_apis_origin_url_ +
126 kOAuth2IssueTokenUrlSuffix; 128 kOAuth2IssueTokenUrlSuffix;
127 std::string oauth_user_info_url = google_apis_origin_url_ + 129 std::string oauth_user_info_url = google_apis_origin_url_ +
128 kOAuthUserInfoUrlSuffix; 130 kOAuthUserInfoUrlSuffix;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 224 }
223 225
224 const std::string& GaiaUrls::oauth2_chrome_client_secret() { 226 const std::string& GaiaUrls::oauth2_chrome_client_secret() {
225 return oauth2_chrome_client_secret_; 227 return oauth2_chrome_client_secret_;
226 } 228 }
227 229
228 const std::string& GaiaUrls::client_login_to_oauth2_url() { 230 const std::string& GaiaUrls::client_login_to_oauth2_url() {
229 return client_login_to_oauth2_url_; 231 return client_login_to_oauth2_url_;
230 } 232 }
231 233
234 const std::string& GaiaUrls::oauth2_auth_url() {
235 return oauth2_auth_url_;
236 }
237
232 const std::string& GaiaUrls::oauth2_token_url() { 238 const std::string& GaiaUrls::oauth2_token_url() {
233 return oauth2_token_url_; 239 return oauth2_token_url_;
234 } 240 }
235 241
236 const std::string& GaiaUrls::oauth2_issue_token_url() { 242 const std::string& GaiaUrls::oauth2_issue_token_url() {
237 return oauth2_issue_token_url_; 243 return oauth2_issue_token_url_;
238 } 244 }
239 245
240 const std::string& GaiaUrls::oauth2_revoke_url() { 246 const std::string& GaiaUrls::oauth2_revoke_url() {
241 return oauth2_revoke_url_; 247 return oauth2_revoke_url_;
242 } 248 }
243 249
244 const std::string& GaiaUrls::gaia_login_form_realm() { 250 const std::string& GaiaUrls::gaia_login_form_realm() {
245 return gaia_login_form_realm_; 251 return gaia_login_form_realm_;
246 } 252 }
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_urls.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698