refactor(core): Port SSO config (#17044)

This commit is contained in:
Iván Ovejero
2025-07-07 16:59:35 +02:00
committed by GitHub
parent 044b0bb330
commit 982a7a11f5
13 changed files with 116 additions and 90 deletions

View File

@@ -1,5 +1,7 @@
import { randomEmail, randomName, randomValidPassword } from '@n8n/backend-test-utils';
import { GlobalConfig } from '@n8n/config';
import type { User } from '@n8n/db';
import { Container } from '@n8n/di';
import { setSamlLoginEnabled } from '@/sso.ee/saml/saml-helpers';
import {
@@ -33,6 +35,7 @@ beforeAll(async () => {
someUser = await createUser({ password: memberPassword });
authOwnerAgent = testServer.authAgentFor(owner);
authMemberAgent = testServer.authAgentFor(someUser);
Container.get(GlobalConfig).sso.saml.loginEnabled = true;
});
beforeEach(async () => await enableSaml(false));