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

Unified Diff: google_apis/gaia/gaia_urls.cc

Issue 1169923005: Update oauth2 token endpoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix local_discovery_ui_browsertest Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google_apis/gaia/fake_gaia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/gaia_urls.cc
diff --git a/google_apis/gaia/gaia_urls.cc b/google_apis/gaia/gaia_urls.cc
index d26a73beeacd4b67eee33b700a308f7c01203a6f..0d1619e61c65fdbec85e3df0c6ff478964fa3b7d 100644
--- a/google_apis/gaia/gaia_urls.cc
+++ b/google_apis/gaia/gaia_urls.cc
@@ -41,10 +41,10 @@ const char kGetOAuthTokenUrlSuffix[] = "o/oauth/GetOAuthToken/";
const char kClientLoginToOAuth2UrlSuffix[] = "o/oauth2/programmatic_auth";
const char kOAuth2AuthUrlSuffix[] = "o/oauth2/auth";
const char kOAuth2RevokeUrlSuffix[] = "o/oauth2/revoke";
-const char kOAuth2TokenUrlSuffix[] = "o/oauth2/token";
const char kOAuth2IFrameUrlSuffix[] = "o/oauth2/iframerpc";
// API calls from www.googleapis.com
+const char kOAuth2TokenUrlSuffix[] = "oauth2/v4/token";
const char kOAuth2IssueTokenUrlSuffix[] = "oauth2/v2/IssueToken";
const char kOAuth2TokenInfoUrlSuffix[] = "oauth2/v2/tokeninfo";
const char kOAuthUserInfoUrlSuffix[] = "oauth2/v1/userinfo";
@@ -121,12 +121,12 @@ GaiaUrls::GaiaUrls() {
client_login_to_oauth2_url_ =
lso_origin_url_.Resolve(kClientLoginToOAuth2UrlSuffix);
oauth2_auth_url_ = lso_origin_url_.Resolve(kOAuth2AuthUrlSuffix);
- oauth2_token_url_ = lso_origin_url_.Resolve(kOAuth2TokenUrlSuffix);
oauth2_revoke_url_ = lso_origin_url_.Resolve(kOAuth2RevokeUrlSuffix);
oauth2_iframe_url_ =
lso_origin_url_.Resolve(kOAuth2IFrameUrlSuffix);
// URLs from www.googleapis.com.
+ oauth2_token_url_ = google_apis_origin_url_.Resolve(kOAuth2TokenUrlSuffix);
oauth2_issue_token_url_ =
google_apis_origin_url_.Resolve(kOAuth2IssueTokenUrlSuffix);
oauth2_token_info_url_ =
« no previous file with comments | « google_apis/gaia/fake_gaia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698