Implemented the AUTH_OIDC_REDIRECT_LOGIN environment variable. Added an OIDC redirect function within authentication.js controller. Updated README.md. Updated dependencies

This commit is contained in:
Glenn de Haan
2025-10-31 08:33:40 +01:00
parent 7cd513b057
commit e347f67249
5 changed files with 158 additions and 210 deletions

View File

@@ -19,6 +19,12 @@ module.exports = {
return;
}
// Check if OIDC redirects are enabled
if (variables.authOidcEnabled && variables.authOidcRedirectLogin) {
res.redirect(302, `${req.headers['x-ingress-path'] ? req.headers['x-ingress-path'] : ''}/oidc/login`);
return;
}
const hour = new Date().getHours();
const timeHeader = hour < 12 ? 'Good Morning' : hour < 18 ? 'Good Afternoon' : 'Good Evening';