add sso route parameter to app install

presumably, we don't allow this to be changed post installation
This commit is contained in:
Girish Ramakrishnan
2016-11-11 10:55:44 +05:30
parent 6064db9467
commit 9c0f2175f7
2 changed files with 7 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ function installApp(req, res, next) {
if (data.xFrameOptions && typeof data.xFrameOptions !== 'string') return next(new HttpError(400, 'xFrameOptions must be a string'));
if ('oauthProxy' in data && typeof data.oauthProxy !== 'boolean') return next(new HttpError(400, 'oauthProxy must be a boolean'));
if ('sso' in data && typeof data.sso !== 'boolean') return next(new HttpError(400, 'sso must be a boolean'));
debug('Installing app :%j', data);