aboutsummaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-05 15:54:00 +0100
committerMinteck <contact@minteck.org>2022-02-05 15:54:00 +0100
commit7a025720d6a07323c4a0b32cf6c5fdb7d0269807 (patch)
treee9fd8dd71c82352a8440adc6f9a085ad376e6781 /login
parent133be8d6e235b83edf562520c550a2cda734ffd1 (diff)
downloadcore-7a025720d6a07323c4a0b32cf6c5fdb7d0269807.tar.gz
core-7a025720d6a07323c4a0b32cf6c5fdb7d0269807.tar.bz2
core-7a025720d6a07323c4a0b32cf6c5fdb7d0269807.zip
Update
Diffstat (limited to 'login')
-rw-r--r--login/embed/index.php6
-rw-r--r--login/index.php2
2 files changed, 1 insertions, 7 deletions
diff --git a/login/embed/index.php b/login/embed/index.php
deleted file mode 100644
index 2cad6ea..0000000
--- a/login/embed/index.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-
-$_CONFIG = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/private/FamilineConfig.json"), true);
-
-header("Location: https://" . $_CONFIG["Global"]["federation"] . "/auth/realms/Familine/protocol/openid-connect/auth?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/private/app.json"), true)["id"] . "&response_type=code&redirect_uri=https://" . $_CONFIG["Global"]["domain"] . "/oauth/embed&scope=profile&request_credentials=default&access_type=offline");
-die();
diff --git a/login/index.php b/login/index.php
index 5cda156..cb42cd1 100644
--- a/login/index.php
+++ b/login/index.php
@@ -2,5 +2,5 @@
$_CONFIG = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/private/FamilineConfig.json"), true);
-header("Location: https://" . $_CONFIG["Global"]["federation"] . "/auth/realms/Familine/protocol/openid-connect/auth?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/private/app.json"), true)["id"] . "&response_type=code&redirect_uri=https://" . $_CONFIG["Global"]["domain"] . "/oauth&scope=profile&request_credentials=default&access_type=offline");
+header("Location: https://" . $_CONFIG["Global"]["federation"] . "/auth/realms/Familine/protocol/openid-connect/auth?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/private/app.json"), true)["id"] . "&response_type=code&redirect_uri=https://" . $_CONFIG["Global"]["domain"] . "/oauth/?r=" . urlencode($_GET['r']) . "&scope=profile&request_credentials=default&access_type=offline");
die();