aboutsummaryrefslogtreecommitdiff
path: root/app/session/login/index.php
blob: 05c3dc31bd33462b5c041caa6eb62b369d9ef90e (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/?r=" . urlencode($_GET['r']) . "&scope=profile&request_credentials=default&access_type=offline");
die();