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

Unified Diff: google_apis/gaia/fake_gaia.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.h ('k') | google_apis/gaia/gaia_urls.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/fake_gaia.cc
diff --git a/google_apis/gaia/fake_gaia.cc b/google_apis/gaia/fake_gaia.cc
index 456d8db13e91763c9b57e2381371c6a739b3d325..4c0db5a15c6561e0efb819d04f06428eed528008 100644
--- a/google_apis/gaia/fake_gaia.cc
+++ b/google_apis/gaia/fake_gaia.cc
@@ -266,7 +266,7 @@ void FakeGaia::Initialize() {
// Handles /SSO GAIA call (not GAIA, made up for SAML tests).
REGISTER_PATH_RESPONSE_HANDLER("/SSO", HandleSSO);
- // Handles /o/oauth2/token GAIA call.
+ // Handles /oauth2/v4/token GAIA call.
REGISTER_RESPONSE_HANDLER(
gaia_urls->oauth2_token_url(), HandleAuthToken);
@@ -624,7 +624,7 @@ void FakeGaia::HandleAuthToken(const HttpRequest& request,
std::string grant_type;
if (!GetQueryParameter(request.content, "grant_type", &grant_type)) {
http_response->set_code(net::HTTP_BAD_REQUEST);
- LOG(ERROR) << "No 'grant_type' param in /o/oauth2/token";
+ LOG(ERROR) << "No 'grant_type' param in /oauth2/v4/token";
return;
}
@@ -633,7 +633,7 @@ void FakeGaia::HandleAuthToken(const HttpRequest& request,
if (!GetQueryParameter(request.content, "code", &auth_code) ||
auth_code != merge_session_params_.auth_code) {
http_response->set_code(net::HTTP_BAD_REQUEST);
- LOG(ERROR) << "No 'code' param in /o/oauth2/token";
+ LOG(ERROR) << "No 'code' param in /oauth2/v4/token";
return;
}
@@ -683,7 +683,7 @@ void FakeGaia::HandleAuthToken(const HttpRequest& request,
}
}
- LOG(ERROR) << "Bad request for /o/oauth2/token - "
+ LOG(ERROR) << "Bad request for /oauth2/v4/token - "
<< "refresh_token = " << refresh_token
<< ", scope = " << scope
<< ", client_id = " << client_id;
« no previous file with comments | « google_apis/gaia/fake_gaia.h ('k') | google_apis/gaia/gaia_urls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698