oidc: support app addon oidc configs as normal clients
This commit is contained in:
@@ -1359,7 +1359,7 @@ async function install(data, auditSource) {
|
||||
let sso = 'sso' in data ? data.sso : null;
|
||||
if ('sso' in data && !('optionalSso' in manifest)) throw new BoxError(BoxError.BAD_FIELD, 'sso can only be specified for apps with optionalSso');
|
||||
// if sso was unspecified, enable it by default if possible
|
||||
if (sso === null) sso = !!manifest.addons?.ldap || !!manifest.addons?.proxyAuth;
|
||||
if (sso === null) sso = !!manifest.addons?.ldap || !!manifest.addons?.proxyAuth || !!manifest.addons?.oidc;
|
||||
|
||||
error = validateEnv(env);
|
||||
if (error) throw error;
|
||||
|
||||
Reference in New Issue
Block a user