From 2f411b9e0f326bc3db3d9927ed4b441e638fde9d Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 13 Apr 2022 09:21:05 +0200 Subject: Attempt 3 at fixing broken session --- login/embed/index.php | 2 +- login/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/login/embed/index.php b/login/embed/index.php index a8d18a0..8ea9020 100644 --- a/login/embed/index.php +++ b/login/embed/index.php @@ -2,5 +2,5 @@ $_CONFIG = json_decode(file_get_contents("/mnt/familine/private/FamilineConfig.json"), true); -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/embed&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/embed&scope=Hub&request_credentials=default&access_type=offline"); die(); diff --git a/login/index.php b/login/index.php index 71a3e2d..0e607d1 100755 --- a/login/index.php +++ b/login/index.php @@ -3,5 +3,5 @@ $_CONFIG = json_decode(file_get_contents("/mnt/familine/private/FamilineConfig.json"), true); setcookie("_auth_callback", $_GET['r'], 0, "/"); -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&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&scope=Hub&request_credentials=default&access_type=offline"); die(); -- cgit