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

Unified Diff: chrome/common/net/gaia/gaia_urls.cc

Issue 9549013: Add code to mint OAuth tokens from login-scoped OAuth token. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « chrome/common/net/gaia/gaia_urls.h ('k') | chrome/common/net/gaia/oauth2_mint_token_consumer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/gaia_urls.cc
===================================================================
--- chrome/common/net/gaia/gaia_urls.cc (revision 124237)
+++ chrome/common/net/gaia/gaia_urls.cc (working copy)
@@ -38,6 +38,8 @@
"https://accounts.google.com/o/oauth2/programmatic_auth";
const char kOAuth2TokenUrl[] =
"https://accounts.google.com/o/oauth2/token";
+const char kOAuth2IssueTokenUrl[] =
+ "https://www.googleapis.com/oauth2/v2/IssueToken";
} // namespacce
GaiaUrls* GaiaUrls::GetInstance() {
@@ -80,6 +82,7 @@
oauth2_chrome_client_secret_ = kOAuth2ChromeClientSecret;
client_login_to_oauth2_url_ = kClientLoginToOAuth2Url;
oauth2_token_url_ = kOAuth2TokenUrl;
+ oauth2_issue_token_url_ = kOAuth2IssueTokenUrl;
}
GaiaUrls::~GaiaUrls() {
@@ -160,3 +163,7 @@
const std::string& GaiaUrls::oauth2_token_url() {
return oauth2_token_url_;
}
+
+const std::string& GaiaUrls::oauth2_issue_token_url() {
+ return oauth2_issue_token_url_;
+}
« no previous file with comments | « chrome/common/net/gaia/gaia_urls.h ('k') | chrome/common/net/gaia/oauth2_mint_token_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698