feat(auth): add generic OIDC login with mandatory groups

This commit is contained in:
2026-08-17 05:44:10 +02:00
parent 202822f3ba
commit 4fe51cbeb1
20 changed files with 1144 additions and 40 deletions
+2 -4
View File
@@ -76,14 +76,12 @@ describe("LoginPage", () => {
expect(screen.getByLabelText(/password/i)).toHaveValue("");
});
test("shows OIDC only when public configuration enables it and uses same-origin navigation", () => {
test("shows OIDC only when public configuration enables it", () => {
const { rerender } = render(<LoginPage config={localConfig} onAuthenticated={vi.fn()} />);
expect(screen.queryByRole("link", { name: /single sign-on/i })).not.toBeInTheDocument();
rerender(<LoginPage config={oidcConfig} onAuthenticated={vi.fn()} />);
expect(screen.getByRole("link", { name: /single sign-on/i })).toHaveAttribute(
"href", "/api/auth/oidc/login",
);
expect(screen.getByRole("button", { name: /single sign-on/i })).toBeEnabled();
});
test("does not dispatch local login until an in-flight logout response settles", async () => {