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

Unified Diff: google_apis/gaia/gaia_urls.cc

Issue 13599003: revoke unused OAuth2 tokens on signout and re-signin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 7 years, 9 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/gaia_urls.h ('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 a910d4d8ef9a06b29cb90440b40524f93eeccd0d..f11ba898a0914e8781973dc9f0f63c1a7019eb81 100644
--- a/google_apis/gaia/gaia_urls.cc
+++ b/google_apis/gaia/gaia_urls.cc
@@ -30,6 +30,7 @@ const char kOAuthRevokeTokenUrlSuffix[] = "/AuthSubRevokeToken";
// API calls from accounts.google.com (LSO)
const char kGetOAuthTokenUrlSuffix[] = "/o/oauth/GetOAuthToken/";
const char kClientLoginToOAuth2UrlSuffix[] = "/o/oauth2/programmatic_auth";
+const char kOAuth2RevokeUrlSuffix[] = "/o/oauth2/revoke";
const char kOAuth2TokenUrlSuffix[] = "/o/oauth2/token";
const char kClientOAuthUrlSuffix[] = "/ClientOAuth";
@@ -115,6 +116,7 @@ GaiaUrls::GaiaUrls() {
std::string client_login_to_oauth2_url = lso_origin_url_ +
kClientLoginToOAuth2UrlSuffix;
std::string oauth2_token_url = lso_origin_url_ + kOAuth2TokenUrlSuffix;
+ oauth2_revoke_url_ = lso_origin_url_ + kOAuth2RevokeUrlSuffix;
// URLs from www.googleapis.com.
oauth_wrap_bridge_user_info_scope_ = google_apis_origin_url_ +
@@ -234,6 +236,9 @@ const std::string& GaiaUrls::oauth2_issue_token_url() {
return oauth2_issue_token_url_;
}
+const std::string& GaiaUrls::oauth2_revoke_url() {
+ return oauth2_revoke_url_;
+}
const std::string& GaiaUrls::gaia_login_form_realm() {
return gaia_login_form_realm_;
« 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