feat(auth): Anmeldung mit Passwort und OIDC, Schutz aller Seiten (#013)
Signierte Sitzungs-Cookies mit jose, OIDC ueber openid-client (authentik), Schutz in proxy.ts, Anmeldeseite, Audit-Log-Ansicht, Sicherheits-Kopfzeilen und Rate-Limit. Kein Auth.js, weil Version 5 Beta ist. 147 Tests. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { cookies } from "next/headers";
|
||||
import { SITZUNGS_COOKIE } from "@/lib/sitzung";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
/** Abmelden per Link; löscht das Sitzungs-Cookie. */
|
||||
export async function GET(request: Request) {
|
||||
(await cookies()).delete(SITZUNGS_COOKIE);
|
||||
return Response.redirect(new URL("/login", request.url), 302);
|
||||
}
|
||||
Reference in New Issue
Block a user