diff options
Diffstat (limited to 'Authentication/Start')
-rw-r--r-- | Authentication/Start/index.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Authentication/Start/index.php b/Authentication/Start/index.php index 18bde88..99f393f 100644 --- a/Authentication/Start/index.php +++ b/Authentication/Start/index.php @@ -1,7 +1,6 @@ <?php -$channel = "private"; -$server = "privateauth.equestria.dev"; +$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/Callback&scope=Hub&request_credentials=default&access_type=offline"); +header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true)["oauth"]["id"] . "&response_type=code&redirect_uri=https://ponies.equestria.horse/Authentication/Callback&scope=Hub&request_credentials=default&access_type=offline"); die(); |