diff options
author | Minteck <contact@minteck.org> | 2022-06-04 14:51:59 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-06-04 14:51:59 +0200 |
commit | bc8f3b7fa9f3a94245fe3bef11e41954817fe075 (patch) | |
tree | 68e8b12044e604b323cd7bdd58d672d178fc97c5 /app/session/login/index.php | |
parent | efa1a883df6aa15b60b40e211f0aa87e92e4e479 (diff) | |
download | core-bc8f3b7fa9f3a94245fe3bef11e41954817fe075.tar.gz core-bc8f3b7fa9f3a94245fe3bef11e41954817fe075.tar.bz2 core-bc8f3b7fa9f3a94245fe3bef11e41954817fe075.zip |
Update
Diffstat (limited to 'app/session/login/index.php')
-rw-r--r-- | app/session/login/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/session/login/index.php b/app/session/login/index.php index 05c3dc3..0e607d1 100644 --- a/app/session/login/index.php +++ b/app/session/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"] . "/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&scope=Hub&request_credentials=default&access_type=offline"); die(); |