fix: simplify OIDC failure redirects

fix: simplify OIDC failure redirects
This commit is contained in:
Daniel Volz
2026-05-10 22:50:39 +02:00
committed by GitHub
parent 8473ed8387
commit f265d090c6
2 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -117,7 +117,7 @@ describe("OIDC routes", () => {
});
expect(res.statusCode).toBe(302);
expect(res.headers.location).toBe("http://localhost:5173/?error=oidc_access_denied");
expect(res.headers.location).toBe("http://localhost:5173");
} finally {
await app.close();
}
@@ -129,7 +129,7 @@ describe("OIDC routes", () => {
const res = await app.inject({ method: "GET", url: "/auth/oidc/callback" });
expect(res.statusCode).toBe(302);
expect(res.headers.location).toBe("http://localhost:5173/?error=oidc_missing_params");
expect(res.headers.location).toBe("http://localhost:5173");
} finally {
await app.close();
}
@@ -144,7 +144,7 @@ describe("OIDC routes", () => {
});
expect(res.statusCode).toBe(302);
expect(res.headers.location).toBe("http://localhost:5173/?error=oidc_state_mismatch");
expect(res.headers.location).toBe("http://localhost:5173");
} finally {
await app.close();
}