From 50b7b70a58942474790ac9c65ac58af87e90abb8 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 13 Apr 2022 09:13:01 +0200 Subject: Attempt 1 at fixing broken session --- login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'login/index.php') diff --git a/login/index.php b/login/index.php index 05c3dc3..c9d3649 100755 --- a/login/index.php +++ b/login/index.php @@ -2,5 +2,5 @@ $_CONFIG = json_decode(file_get_contents("/mnt/familine/private/FamilineConfig.json"), true); -header("Location: https://" . $_CONFIG["Global"]["federation"] . "/auth/realms/Familine/protocol/openid-connect/auth?client_id=" . json_decode(file_get_contents("/mnt/familine/private/app.json"), true)["id"] . "&response_type=code&redirect_uri=https://session." . $_CONFIG["Global"]["domain"] . "/oauth/?r=" . urlencode($_GET['r']) . "&scope=profile&request_credentials=default&access_type=offline"); +header("Location: https://" . $_CONFIG["Global"]["federation"] . "/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents("/mnt/familine/private/app.json"), true)["id"] . "&response_type=code&redirect_uri=https://session." . $_CONFIG["Global"]["domain"] . "/oauth/?r=" . urlencode($_GET['r']) . "&scope=profile&request_credentials=default&access_type=offline"); die(); -- cgit