Authelia test
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 11s

This commit is contained in:
2026-04-01 17:29:48 +02:00
parent 7dbb374360
commit 39c87726a2

View File

@@ -1,6 +1,21 @@
<?php <?php
session_start(); session_start();
// --- Hilfsfunktion für Fehlerseiten ---
function serve_error_page($http_code, $filename) {
http_response_code($http_code);
$filepath = realpath(__DIR__ . '/' . $filename);
if ($filepath && file_exists($filepath)) {
header('Content-Type: text/html');
readfile($filepath);
} else {
// Fallback, falls die HTML-Datei serverseitig gelöscht wurde
echo "<h1>Fehler $http_code</h1>";
}
exit;
}
// --- OIDC Konfiguration --- // --- OIDC Konfiguration ---
$client_id = 'iten-pro'; $client_id = 'iten-pro';
$client_secret = '1qd6v3kCwpkdRu48pgyYF7axT9dywipqEvwHqWM9OiB53bQC'; // Hier im Klartext eintragen $client_secret = '1qd6v3kCwpkdRu48pgyYF7axT9dywipqEvwHqWM9OiB53bQC'; // Hier im Klartext eintragen
@@ -103,6 +118,5 @@ if ($real_target && file_exists($real_target) && strpos($real_target, $base_dir)
exit; exit;
} }
header("HTTP/1.0 404 Not Found"); serve_error_page(404, '404.html');
echo "404 - Geschützte Datei nicht gefunden";
exit; exit;