summaryrefslogtreecommitdiff
path: root/oauth/init/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'oauth/init/index.php')
-rw-r--r--oauth/init/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauth/init/index.php b/oauth/init/index.php
index f0696b2..4f2be05 100644
--- a/oauth/init/index.php
+++ b/oauth/init/index.php
@@ -4,5 +4,5 @@ header("X-Frame-Options: DENY");
$app = 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=" . $app["id"] . "&response_type=code&redirect_uri=" . ($_SERVER['SERVER_PORT'] === "8043" ? "https://mist-testing.equestria.horse" : "https://mist.equestria.horse") . "/oauth/callback&scope=Hub&request_credentials=default&access_type=offline");
+header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . $app["id"] . "&response_type=code&redirect_uri=" . ($_SERVER['HTTP_HOST'] === "mist-testing.equestria.horse" ? "https://mist-testing.equestria.horse" : "https://mist.equestria.horse") . "/oauth/callback&scope=Hub&request_credentials=default&access_type=offline");
die();