diff --git a/public/auth.php b/public/auth.php index d560f7c..663f4fd 100644 --- a/public/auth.php +++ b/public/auth.php @@ -2,7 +2,7 @@ session_start(); // --- OIDC Konfiguration --- -$client_id = 'iten-pro-website'; +$client_id = 'iten-pro'; $client_secret = '1qd6v3kCwpkdRu48pgyYF7axT9dywipqEvwHqWM9OiB53bQC'; // Hier im Klartext eintragen $authelia_url = 'https://auth.iten.pro'; $redirect_uri = 'https://iten.pro/auth.php'; // Muss exakt mit Authelia config übereinstimmen @@ -26,6 +26,13 @@ if (isset($_GET['code']) && isset($_GET['state'])) { ])); $response = curl_exec($ch); + + if ($response === false) { + $error_msg = curl_error($ch); + curl_close($ch); + die('Kritischer cURL-Netzwerkfehler: ' . $error_msg); + } + curl_close($ch); $data = json_decode($response, true);