diff options
author | Minteck <contact@minteck.org> | 2022-04-13 09:19:20 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-04-13 09:19:20 +0200 |
commit | 026165618d2cbd72333d52ec9809e09d10961e58 (patch) | |
tree | 1a8649cde4a6c77cf1775c50ab8c62e02ff26143 /login/index.php | |
parent | 50b7b70a58942474790ac9c65ac58af87e90abb8 (diff) | |
download | session-026165618d2cbd72333d52ec9809e09d10961e58.tar.gz session-026165618d2cbd72333d52ec9809e09d10961e58.tar.bz2 session-026165618d2cbd72333d52ec9809e09d10961e58.zip |
Attempt 2 at fixing broken session
Diffstat (limited to 'login/index.php')
-rwxr-xr-x | login/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/login/index.php b/login/index.php index c9d3649..71a3e2d 100755 --- a/login/index.php +++ b/login/index.php @@ -1,6 +1,7 @@ <?php $_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/?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&scope=profile&request_credentials=default&access_type=offline"); die(); |