summaryrefslogtreecommitdiff
path: root/auth/init/index.php
blob: 6f1ada7b1aca860f5b5bfd539726c200fe034ed0 (plain)
1
2
3
4
5
6
7
<?php

$app = $GLOBALS["ColdHazeApp"] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true);
$server = "auth.equestria.horse";

header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . $GLOBALS["ColdHazeApp"]["oauth"]["id"] . "&response_type=code&redirect_uri=https://ponies.equestria.horse/auth/callback&scope=Hub&request_credentials=default&access_type=offline");
die();