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

Unified 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 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 f5734c714a99d241ca89e7a892d512165dca33de..2135c31f89bcc6a1b3ad9ae94f8629830b2f0db1 100644
--- a/google_apis/gaia/gaia_urls.cc
+++ b/google_apis/gaia/gaia_urls.cc
@@ -31,6 +31,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 kOAuth2AuthUrlSuffix[] = "/o/oauth2/auth";
const char kOAuth2RevokeUrlSuffix[] = "/o/oauth2/revoke";
const char kOAuth2TokenUrlSuffix[] = "/o/oauth2/token";
const char kClientOAuthUrlSuffix[] = "/ClientOAuth";
@@ -116,6 +117,7 @@ GaiaUrls::GaiaUrls() {
get_oauth_token_url_ = lso_origin_url_ + kGetOAuthTokenUrlSuffix;
std::string client_login_to_oauth2_url = lso_origin_url_ +
kClientLoginToOAuth2UrlSuffix;
+ oauth2_auth_url_ = lso_origin_url_ + kOAuth2AuthUrlSuffix;
std::string oauth2_token_url = lso_origin_url_ + kOAuth2TokenUrlSuffix;
oauth2_revoke_url_ = lso_origin_url_ + kOAuth2RevokeUrlSuffix;
@@ -229,6 +231,10 @@ const std::string& GaiaUrls::client_login_to_oauth2_url() {
return client_login_to_oauth2_url_;
}
+const std::string& GaiaUrls::oauth2_auth_url() {
+ return oauth2_auth_url_;
+}
+
const std::string& GaiaUrls::oauth2_token_url() {
return oauth2_token_url_;
}
« 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