feat: added a login page with Authentik authentication

This commit is contained in:
Zakaria
2026-10-16 19:35:27 -04:00
parent 668911ed6e
commit 924e354788
18 changed files with 441 additions and 54 deletions
+5 -5
View File
@@ -47,9 +47,9 @@ describe('credentialed route CORS', () => {
body,
}))
expect(trusted.status).toBe(400)
expect(trusted.status).toBe(401)
expect(trusted.headers.get('access-control-allow-origin')).toBe(TRUSTED_ORIGIN)
expect(untrusted.status).toBe(400)
expect(untrusted.status).toBe(401)
expect(untrusted.headers.get('access-control-allow-origin')).toBeNull()
})
@@ -63,9 +63,9 @@ describe('credentialed route CORS', () => {
headers: {origin: UNTRUSTED_ORIGIN},
}))
expect(sameOrigin.status).toBe(400)
expect(sameOrigin.status).toBe(401)
expect(sameOrigin.headers.get('access-control-allow-origin')).toBeNull()
expect(unrelated.status).toBe(200)
expect(unrelated.status).toBe(401)
expect(unrelated.headers.get('access-control-allow-origin')).toBe('*')
})
@@ -74,7 +74,7 @@ describe('credentialed route CORS', () => {
headers: {origin: UNTRUSTED_ORIGIN},
}))
expect(schema.status).toBe(200)
expect(schema.status).toBe(401)
expect(schema.headers.get('access-control-allow-origin')).toBe('*')
})
})