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

$channel = "private";
$server = "privateauth.equestria.dev";

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/Callback&scope=Hub&request_credentials=default&access_type=offline");
die();