summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
Diffstat (limited to 'auth')
-rw-r--r--auth/callback/index.php1
-rw-r--r--auth/init/index.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/auth/callback/index.php b/auth/callback/index.php
index 3b9d6eb..40964b5 100644
--- a/auth/callback/index.php
+++ b/auth/callback/index.php
@@ -1,5 +1,6 @@
<?php
+$app = $GLOBALS["ColdHazeApp"] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true);
$server = "auth.equestria.horse";
header("Content-Type: text/plain");
diff --git a/auth/init/index.php b/auth/init/index.php
index 9428825..6f1ada7 100644
--- a/auth/init/index.php
+++ b/auth/init/index.php
@@ -1,5 +1,6 @@
<?php
+$app = $GLOBALS["ColdHazeApp"] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true);
$server = "auth.equestria.horse";
header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . $GLOBALS["ColdHazeApp"]["oauth"]["id"] . "&response_type=code&redirect_uri=https://ponies.equestria.horse/auth/callback&scope=Hub&request_credentials=default&access_type=offline");