diff options
Diffstat (limited to 'oauth/native/index.php')
-rw-r--r-- | oauth/native/index.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/oauth/native/index.php b/oauth/native/index.php new file mode 100644 index 0000000..bec74e2 --- /dev/null +++ b/oauth/native/index.php @@ -0,0 +1,7 @@ +<?php + +$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" ? "http://localhost:8043" : "https://wavy.equestria.horse") . "/oauth/callback-native&scope=Hub&request_credentials=required&access_type=offline"); +die(); |