From 39c87726a293834bbffc0e15ac243b3e20bc09f1 Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Wed, 1 Apr 2026 17:29:48 +0200 Subject: [PATCH] Authelia test --- public/auth.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/public/auth.php b/public/auth.php index 91c9fc1..ddd927b 100644 --- a/public/auth.php +++ b/public/auth.php @@ -1,6 +1,21 @@ Fehler $http_code"; + } + exit; +} + // --- OIDC Konfiguration --- $client_id = 'iten-pro'; $client_secret = '1qd6v3kCwpkdRu48pgyYF7axT9dywipqEvwHqWM9OiB53bQC'; // Hier im Klartext eintragen @@ -103,6 +118,5 @@ if ($real_target && file_exists($real_target) && strpos($real_target, $base_dir) exit; } -header("HTTP/1.0 404 Not Found"); -echo "404 - Geschützte Datei nicht gefunden"; +serve_error_page(404, '404.html'); exit; \ No newline at end of file