take oauthProxy parameter in install and configure routes

part of #6
This commit is contained in:
Girish Ramakrishnan
2016-09-06 21:21:56 -07:00
parent 9a7ac4ffb7
commit b66ba0a2c7
2 changed files with 8 additions and 2 deletions

View File

@@ -442,7 +442,8 @@ function install(data, auditSource, callback) {
key = data.key || null,
memoryLimit = data.memoryLimit || 0,
altDomain = data.altDomain || null,
xFrameOptions = data.xFrameOptions || 'SAMEORIGIN';
xFrameOptions = data.xFrameOptions || 'SAMEORIGIN',
oauthProxy = data.oauthProxy === true;
assert(data.appStoreId || data.manifest); // atleast one of them is required
@@ -498,7 +499,8 @@ function install(data, auditSource, callback) {
accessRestriction: accessRestriction,
memoryLimit: memoryLimit,
altDomain: altDomain,
xFrameOptions: xFrameOptions
xFrameOptions: xFrameOptions,
oauthProxy: oauthProxy
};
appdb.add(appId, appStoreId, manifest, location, portBindings, data, function (error) {