Authelia test
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 14s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 14s
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
// --- OIDC Konfiguration ---
|
// --- OIDC Konfiguration ---
|
||||||
$client_id = 'iten-pro-website';
|
$client_id = 'iten-pro';
|
||||||
$client_secret = '1qd6v3kCwpkdRu48pgyYF7axT9dywipqEvwHqWM9OiB53bQC'; // Hier im Klartext eintragen
|
$client_secret = '1qd6v3kCwpkdRu48pgyYF7axT9dywipqEvwHqWM9OiB53bQC'; // Hier im Klartext eintragen
|
||||||
$authelia_url = 'https://auth.iten.pro';
|
$authelia_url = 'https://auth.iten.pro';
|
||||||
$redirect_uri = 'https://iten.pro/auth.php'; // Muss exakt mit Authelia config übereinstimmen
|
$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);
|
$response = curl_exec($ch);
|
||||||
|
|
||||||
|
if ($response === false) {
|
||||||
|
$error_msg = curl_error($ch);
|
||||||
|
curl_close($ch);
|
||||||
|
die('Kritischer cURL-Netzwerkfehler: ' . $error_msg);
|
||||||
|
}
|
||||||
|
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
$data = json_decode($response, true);
|
$data = json_decode($response, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user