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

Unified Diff: remoting/webapp/me2mom/oauth2.js

Issue 8873026: Update the code that gets an OAuth2 access token. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/me2mom/oauth2.js
diff --git a/remoting/webapp/me2mom/oauth2.js b/remoting/webapp/me2mom/oauth2.js
index 7010715a001cf2df5fbdb5990f437de953599147..5f9b8e3de97f916b6d9767e9ae28ac34ea3392af 100644
--- a/remoting/webapp/me2mom/oauth2.js
+++ b/remoting/webapp/me2mom/oauth2.js
@@ -236,7 +236,9 @@ remoting.OAuth2.prototype.doAuthRedirect = function() {
'client_id': this.CLIENT_ID_,
'redirect_uri': this.REDIRECT_URI_,
'scope': this.SCOPE_,
- 'response_type': 'code'
+ 'response_type': 'code',
+ 'access_type': 'offline',
+ 'approval_prompt': 'force'
});
window.location.replace(GET_CODE_URL);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698