diff --git a/server.js b/server.js index 67c4691..db5df71 100644 --- a/server.js +++ b/server.js @@ -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) {