feat(core): Add saml feature flag (#5494)

adds saml feature flag
This commit is contained in:
Michael Auerswald
2023-02-16 15:05:39 +01:00
committed by GitHub
parent fcac1ddd9f
commit 3a9c257f55
6 changed files with 23 additions and 0 deletions

View File

@@ -145,6 +145,7 @@ import { AbstractServer } from './AbstractServer';
import { configureMetrics } from './metrics';
import { setupBasicAuth } from './middlewares/basicAuth';
import { setupExternalJWTAuth } from './middlewares/externalJWTAuth';
import { isSamlEnabled } from './Saml/helpers';
const exec = promisify(callbackExec);
@@ -275,6 +276,7 @@ class Server extends AbstractServer {
enterprise: {
sharing: false,
ldap: false,
saml: false,
logStreaming: config.getEnv('enterprise.features.logStreaming'),
},
hideUsagePage: config.getEnv('hideUsagePage'),
@@ -303,6 +305,7 @@ class Server extends AbstractServer {
sharing: isSharingEnabled(),
logStreaming: isLogStreamingEnabled(),
ldap: isLdapEnabled(),
saml: isSamlEnabled(),
});
if (isLdapEnabled()) {