set oauthProxy to false

This commit is contained in:
Girish Ramakrishnan 2015-10-13 10:11:47 -07:00
parent ec2415678c
commit a524ba72f7

View File

@ -129,7 +129,7 @@ Cloudron.prototype.setCredentials = function (password, accessToken) {
Cloudron.prototype.installApp = function (location, manifest) { Cloudron.prototype.installApp = function (location, manifest) {
var res = request.post(this._origin + '/api/v1/apps/install') var res = request.post(this._origin + '/api/v1/apps/install')
.query({ access_token: this._credentials.accessToken }) .query({ access_token: this._credentials.accessToken })
.send({ manifest: manifest, appStoreId: '', location: location, accessRestriction: '' }) .send({ manifest: manifest, appStoreId: '', location: location, accessRestriction: '', oauthProxy: false })
.end(); .end();
common.verifyResponse2(res, 'Cannot install app'); common.verifyResponse2(res, 'Cannot install app');
debug('App installed at %s'.green, location); debug('App installed at %s'.green, location);
@ -146,7 +146,7 @@ Cloudron.prototype.installApp = function (location, manifest) {
}; };
Cloudron.prototype.configureApp = function (appId, newLocation) { Cloudron.prototype.configureApp = function (appId, newLocation) {
var res = request.post(this._origin + '/api/v1/apps/' + appId + '/configure').query({ access_token: this._credentials.accessToken }).send({ location: newLocation, accessRestriction: '', password: this._credentials.password }).end(); var res = request.post(this._origin + '/api/v1/apps/' + appId + '/configure').query({ access_token: this._credentials.accessToken }).send({ location: newLocation, accessRestriction: '', oauthProxy: false, password: this._credentials.password }).end();
common.verifyResponse2(res, 'App could not be configured'); common.verifyResponse2(res, 'App could not be configured');
console.log('App moved to different location'.green); console.log('App moved to different location'.green);