summaryrefslogtreecommitdiff
path: root/Authentication/Start
diff options
context:
space:
mode:
Diffstat (limited to 'Authentication/Start')
-rw-r--r--Authentication/Start/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Authentication/Start/index.php b/Authentication/Start/index.php
index 10f8b45..18bde88 100644
--- a/Authentication/Start/index.php
+++ b/Authentication/Start/index.php
@@ -1,4 +1,7 @@
<?php
-header("Location: https://privateauth.equestria.dev/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true)["id"] . "&response_type=code&redirect_uri=http" . ($_SERVER['HTTPS'] ? "s" : "") . "://" . $_SERVER['HTTP_HOST'] . "/Authentication/Callback&scope=Hub&request_credentials=default&access_type=offline");
+$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();