summaryrefslogtreecommitdiff
path: root/login/embed/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'login/embed/index.php')
-rw-r--r--login/embed/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/login/embed/index.php b/login/embed/index.php
new file mode 100644
index 0000000..a27ed39
--- /dev/null
+++ b/login/embed/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/embed&scope=profile&request_credentials=default&access_type=offline");
+die();