Add oidc

This commit is contained in:
Andreas Dinauer 2026-03-15 11:44:09 +01:00
parent 424b9ed713
commit f3861ccf2b

View File

@ -6,6 +6,7 @@ export default defineEventHandler(async (event) =>
const cookie = getCookie(event, Session.COOKIE); const cookie = getCookie(event, Session.COOKIE);
if (cookie == null) if (cookie == null)
{ {
console.log("Request is unauthorized. Redirect to IDP.");
await sendRedirect(event, useRuntimeConfig().public.idpUrl, 302); await sendRedirect(event, useRuntimeConfig().public.idpUrl, 302);
} }
}); });