debug: Add authentik header debug logs
Deploy Standortplaner / deploy (push) Successful in 17s
Details
Deploy Standortplaner / deploy (push) Successful in 17s
Details
This commit is contained in:
parent
f4a590b859
commit
3df4a8f945
11
server.js
11
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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue