aboutsummaryrefslogtreecommitdiff
path: root/login/index.php
diff options
context:
space:
mode:
authorMinteck <minteck@phoenixnet.tech>2021-10-31 11:49:13 +0100
committerMinteck <minteck@phoenixnet.tech>2021-10-31 11:49:13 +0100
commite8e6a0906702dc7b569ef4f0b2d9486d772ba562 (patch)
treefb1361db2820ee7182c5023f6fa03237c8f46367 /login/index.php
downloadcore-e8e6a0906702dc7b569ef4f0b2d9486d772ba562.tar.gz
core-e8e6a0906702dc7b569ef4f0b2d9486d772ba562.tar.bz2
core-e8e6a0906702dc7b569ef4f0b2d9486d772ba562.zip
Initial commit
Diffstat (limited to 'login/index.php')
-rw-r--r--login/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/login/index.php b/login/index.php
new file mode 100644
index 0000000..67c01cf
--- /dev/null
+++ b/login/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();