refactor(auth): address server review feedback
- Extract auth DTOs, cookie/JWT helpers and the generic duration parser. - Configure the session cookie and map domain auth failures to HTTP responses. - Add typed Swagger responses and focused regression coverage.
This commit is contained in:
1 parent
72e127888c
commit
1830feb71b
18 files changed
+399
-208
No files matched your search
@@ -31,4 +31,11 @@ describe("authentication disabled", () => {
|
||||
.expect(200);
|
||||
expect(manifest.body.auth).toEqual({ enabled: false });
|
||||
});
|
||||
|
||||
it("returns not found for login while authentication is disabled", async () => {
|
||||
await request(app.getHttpServer())
|
||||
.post("/auth/login")
|
||||
.send({ username: "nobody", password: "synthetic" })
|
||||
.expect(404);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user