diff options
author | Minteck <contact@minteck.org> | 2022-03-27 21:38:10 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-03-27 21:38:10 +0200 |
commit | 2328e5a5742c3fbdbcb4ded8f1d294b4a20e08e0 (patch) | |
tree | 7b783f6206e6126192166a4c031617800ff5a275 /app/session/login/index.php | |
parent | 4622ccde9cf34b8518dc9507382fcd2d7eafcb0c (diff) | |
download | core-2328e5a5742c3fbdbcb4ded8f1d294b4a20e08e0.tar.gz core-2328e5a5742c3fbdbcb4ded8f1d294b4a20e08e0.tar.bz2 core-2328e5a5742c3fbdbcb4ded8f1d294b4a20e08e0.zip |
Commit
Diffstat (limited to 'app/session/login/index.php')
-rw-r--r-- | app/session/login/index.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/session/login/index.php b/app/session/login/index.php new file mode 100644 index 0000000..05c3dc3 --- /dev/null +++ b/app/session/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(); |