summaryrefslogtreecommitdiff
path: root/Authentication/PublicStart/index.php
blob: c0ed9c6700c86c1fa2b4047ca0db8b67018ad834 (plain)
1
2
3
4
5
6
7
<?php

$channel = "public";
$server = "auth.equestria.horse";

header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true)[$channel]["id"] . "&response_type=code&redirect_uri=http" . ($_SERVER['HTTPS'] ? "s" : "") . "://" . $_SERVER['HTTP_HOST'] . "/Authentication/PublicCallback&scope=Hub&request_credentials=default&access_type=offline");
die();