summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-13 09:21:05 +0200
committerMinteck <contact@minteck.org>2022-04-13 09:21:05 +0200
commit2f411b9e0f326bc3db3d9927ed4b441e638fde9d (patch)
treeda05f8053fd0ce8f3d7243bd6861fc8854b599b8
parent026165618d2cbd72333d52ec9809e09d10961e58 (diff)
downloadsession-2f411b9e0f326bc3db3d9927ed4b441e638fde9d.tar.gz
session-2f411b9e0f326bc3db3d9927ed4b441e638fde9d.tar.bz2
session-2f411b9e0f326bc3db3d9927ed4b441e638fde9d.zip
Attempt 3 at fixing broken session
-rw-r--r--login/embed/index.php2
-rwxr-xr-xlogin/index.php2
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();