internal frontend implementation with keycloak authentication

This commit is contained in:
2025-07-02 02:24:35 +00:00
parent 7c3ee5357e
commit 66a415b0dd
39 changed files with 3475 additions and 59 deletions

View File

@@ -0,0 +1,22 @@
'use client';
import {useEffect} from "react";
import {signIn} from "next-auth/react";
import {Loader2} from "lucide-react"; // optional loading spinner
import {cn} from "@/lib/utils"; // optional: your className utility
export default function LoginScreen() {
useEffect(() => {
// Immediately redirect to Keycloak
signIn("keycloak");
}, []);
return (
<div className="flex min-h-screen items-center justify-center bg-muted">
<div className="flex flex-col items-center gap-2 text-center">
<Loader2 className={cn("h-6 w-6 animate-spin text-muted-foreground")}/>
<p className="text-sm text-muted-foreground">Leite zur Anmeldung weiter ...</p>
</div>
</div>
);
}