summaryrefslogtreecommitdiff
path: root/login/embed/index.php
blob: a8d18a02349cf61ea94876b43bd6962f512874b7 (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=profile&request_credentials=default&access_type=offline");
die();