summaryrefslogtreecommitdiff
path: root/auth/init/index.php
blob: d2f93cebda73a880c129aaff121eecd95f2cbe4d (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 = "account.equestria.dev";

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