debug: Add authentik header debug logs
Deploy Standortplaner / deploy (push) Successful in 17s Details

This commit is contained in:
Johannes Baumeister 2026-07-02 17:20:08 +02:00
parent f4a590b859
commit 3df4a8f945
1 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,17 @@ function getAllowedProjects(req) {
const username = req.headers['x-authentik-username'];
const projectsHeader = req.headers['x-authentik-meta-projekte'];
// Debug-Ausgabe der Authentik-Header
const authHeaders = {};
for (const key of Object.keys(req.headers)) {
if (key.startsWith('x-authentik-')) {
authHeaders[key] = req.headers[key];
}
}
if (Object.keys(authHeaders).length > 0) {
log(`Authentik Headers empfangen: ${JSON.stringify(authHeaders)}`);
}
if (!username) {
// Lokale Entwicklung (Fallback)
if (!isProd) {