mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Remove all legacy auth middleware code (no-changelog) (#8755)
This commit is contained in:
committed by
GitHub
parent
2e84684f04
commit
56c8791aff
@@ -157,18 +157,6 @@ describe('GET /login', () => {
|
||||
expect(authToken).toBeUndefined();
|
||||
});
|
||||
|
||||
test('should return cookie if UM is disabled and no cookie is already set', async () => {
|
||||
await createUserShell('global:owner');
|
||||
await utils.setInstanceOwnerSetUp(false);
|
||||
|
||||
const response = await testServer.authlessAgent.get('/login');
|
||||
|
||||
expect(response.statusCode).toBe(200);
|
||||
|
||||
const authToken = utils.getAuthToken(response);
|
||||
expect(authToken).toBeDefined();
|
||||
});
|
||||
|
||||
test('should return 401 Unauthorized if invalid cookie', async () => {
|
||||
testServer.authlessAgent.jar.setCookie(`${AUTH_COOKIE_NAME}=invalid`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user