summaryrefslogtreecommitdiff
path: root/login/index.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-12 11:51:59 +0200
committerMinteck <contact@minteck.org>2022-04-12 11:51:59 +0200
commitb40e7f9f802c0c4bd8e1d27dbca0cbe11faff6d0 (patch)
treeb9638ac6df17c875750127407fc03d371166c9df /login/index.php
downloadsession-b40e7f9f802c0c4bd8e1d27dbca0cbe11faff6d0.tar.gz
session-b40e7f9f802c0c4bd8e1d27dbca0cbe11faff6d0.tar.bz2
session-b40e7f9f802c0c4bd8e1d27dbca0cbe11faff6d0.zip
Commit
Diffstat (limited to 'login/index.php')
-rwxr-xr-xlogin/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/login/index.php b/login/index.php
new file mode 100755
index 0000000..05c3dc3
--- /dev/null
+++ b/login/index.php
@@ -0,0 +1,6 @@
+<?php
+
+$_CONFIG = json_decode(file_get_contents("/mnt/familine/private/FamilineConfig.json"), true);
+
+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");
+die();