diff options
-rw-r--r-- | auth/callback/index.php | 6 | ||||
-rw-r--r-- | auth/init/index.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/auth/callback/index.php b/auth/callback/index.php index bd96e0a..228d35d 100644 --- a/auth/callback/index.php +++ b/auth/callback/index.php @@ -1,7 +1,7 @@ <?php $app = $GLOBALS["ColdHazeApp"] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true); -$server = "auth.equestria.horse"; +$server = "account.equestria.dev"; header("Content-Type: text/plain"); @@ -18,7 +18,7 @@ curl_setopt($crl, CURLOPT_HTTPHEADER, [ "Content-Type: application/x-www-form-urlencoded", "Accept: application/json" ]); -curl_setopt($crl, CURLOPT_POSTFIELDS, "grant_type=authorization_code&redirect_uri=" . urlencode("https://backups.equestria.dev/auth/callback") . "&code=" . $_GET['code']); +curl_setopt($crl, CURLOPT_POSTFIELDS, "grant_type=authorization_code&redirect_uri=" . urlencode("https://backups.equestria.horse/auth/callback") . "&code=" . $_GET['code']); $result = curl_exec($crl); $result = json_decode($result, true); @@ -38,7 +38,7 @@ if (isset($result["access_token"])) { $result = json_decode($result, true); if (!in_array($result["id"], $app["allowed"])) { - header("Location: https://equestria.horse"); + header("Location: https://equestria.dev"); die(); } diff --git a/auth/init/index.php b/auth/init/index.php index b6a99b1..1a606b2 100644 --- a/auth/init/index.php +++ b/auth/init/index.php @@ -1,7 +1,7 @@ <?php $app = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true); -$server = "auth.equestria.horse"; +$server = "account.equestria.dev"; -header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . $app["id"] . "&response_type=code&redirect_uri=https://backups.equestria.dev/auth/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=https://backups.equestria.horse/auth/callback&scope=Hub&request_credentials=default&access_type=offline"); die(); |