Integrate ProfileDropdown component, update layout to include user menu, and add Keycloak logout API route.

This commit is contained in:
2025-06-14 08:55:45 +02:00
parent c92fe6e221
commit 8435ea04af
3 changed files with 72 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
import {NextResponse} from 'next/server'
export async function POST() {
const keycloakLogoutUrl = process.env.KEYCLOAK_LOGOUT_URL
if (!keycloakLogoutUrl) {
return new NextResponse('Missing KEYCLOAK_LOGOUT_URL env variable', {status: 500})
}
return NextResponse.redirect(keycloakLogoutUrl, 302)
}