| Index: remoting/webapp/crd/js/oauth2.js
|
| diff --git a/remoting/webapp/crd/js/oauth2.js b/remoting/webapp/crd/js/oauth2.js
|
| index 69edafc3af679888d4ce7e00ca651d03775c8915..37570b82d9ad0f3c6b39bc94e3eae57ebbf25c5f 100644
|
| --- a/remoting/webapp/crd/js/oauth2.js
|
| +++ b/remoting/webapp/crd/js/oauth2.js
|
| @@ -250,7 +250,7 @@ remoting.OAuth2.prototype.onTokens_ =
|
| remoting.OAuth2.prototype.getAuthorizationCode = function(onDone) {
|
| var xsrf_token = base.generateXsrfToken();
|
| var GET_CODE_URL = this.getOAuth2AuthEndpoint_() + '?' +
|
| - remoting.xhr.urlencodeParamHash({
|
| + remoting.Xhr.urlencodeParamHash({
|
| 'client_id': this.getClientId_(),
|
| 'redirect_uri': this.getRedirectUri_(),
|
| 'scope': this.SCOPE_,
|
| @@ -323,7 +323,7 @@ remoting.OAuth2.prototype.doAuthRedirect = function(onDone) {
|
| remoting.OAuth2.prototype.exchangeCodeForToken = function(code, onDone) {
|
| /** @param {!remoting.Error} error */
|
| var onError = function(error) {
|
| - console.error('Unable to exchange code for token: ', error);
|
| + console.error('Unable to exchange code for token: ' + error.toString());
|
| };
|
|
|
| remoting.oauth2Api.exchangeCodeForTokens(
|
| @@ -375,7 +375,7 @@ remoting.OAuth2.prototype.getToken = function() {
|
| resolve(that.getAccessTokenInternal_()['token']);
|
| }
|
| } else {
|
| - reject(remoting.Error.NOT_AUTHENTICATED);
|
| + reject(new remoting.Error(remoting.Error.Tag.NOT_AUTHENTICATED));
|
| }
|
| });
|
| };
|
|
|