summaryrefslogtreecommitdiff
path: root/login/embed/index.php
blob: 8ea902099e274ed3e1d67eca65d123967ee359bc (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"] . "/hub/api/rest/oauth2/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=Hub&request_credentials=default&access_type=offline");
die();