From 403e3310af2c8a3b1bb58896145758a527cb36c9 Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Wed, 1 Apr 2026 17:08:32 +0200 Subject: [PATCH] Authelia test --- public/auth.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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);