aboutsummaryrefslogtreecommitdiff
path: root/login.old
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-23 19:40:44 +0100
committerMinteck <contact@minteck.org>2021-12-23 19:40:44 +0100
commit133be8d6e235b83edf562520c550a2cda734ffd1 (patch)
treebc2f0fde44cb19e0ff84c060a5234dabf6c00545 /login.old
parent408bee6540c861b65ebb9f6ca805060b35b31720 (diff)
downloadcore-133be8d6e235b83edf562520c550a2cda734ffd1.tar.gz
core-133be8d6e235b83edf562520c550a2cda734ffd1.tar.bz2
core-133be8d6e235b83edf562520c550a2cda734ffd1.zip
Commit
Diffstat (limited to 'login.old')
-rw-r--r--login.old/embed/index.php6
-rw-r--r--login.old/index.php6
2 files changed, 12 insertions, 0 deletions
diff --git a/login.old/embed/index.php b/login.old/embed/index.php
new file mode 100644
index 0000000..9fc6274
--- /dev/null
+++ b/login.old/embed/index.php
@@ -0,0 +1,6 @@
+<?php
+
+$_CONFIG = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/private/FamilineConfig.json"), true);
+
+header("Location: https://" . $_CONFIG["Global"]["federation"] . "/hub/api/rest/oauth2/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=hub&request_credentials=default&access_type=offline");
+die();
diff --git a/login.old/index.php b/login.old/index.php
new file mode 100644
index 0000000..67c01cf
--- /dev/null
+++ b/login.old/index.php
@@ -0,0 +1,6 @@
+<?php
+
+$_CONFIG = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/private/FamilineConfig.json"), true);
+
+header("Location: https://" . $_CONFIG["Global"]["federation"] . "/hub/api/rest/oauth2/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=hub&request_credentials=default&access_type=offline");
+die();