Update the code that gets an OAuth2 access token.

BUG=106868
TEST=Authorize the webapp

Review URL: http://codereview.chromium.org/8873026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113638 0039d316-1c4b-4281-b951-d872f2087c98
parent cae98e4c
...@@ -236,7 +236,9 @@ remoting.OAuth2.prototype.doAuthRedirect = function() { ...@@ -236,7 +236,9 @@ remoting.OAuth2.prototype.doAuthRedirect = function() {
'client_id': this.CLIENT_ID_, 'client_id': this.CLIENT_ID_,
'redirect_uri': this.REDIRECT_URI_, 'redirect_uri': this.REDIRECT_URI_,
'scope': this.SCOPE_, 'scope': this.SCOPE_,
'response_type': 'code' 'response_type': 'code',
'access_type': 'offline',
'approval_prompt': 'force'
}); });
window.location.replace(GET_CODE_URL); window.location.replace(GET_CODE_URL);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment