summaryrefslogtreecommitdiff
path: root/login/embed/index.php
blob: a27ed39fa585c6c7e5bdf8d72544367b3df49661 (plain)
1
2
3
4
5
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();