diff options
Diffstat (limited to 'Authentication/PublicStart/index.php')
-rw-r--r-- | Authentication/PublicStart/index.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Authentication/PublicStart/index.php b/Authentication/PublicStart/index.php new file mode 100644 index 0000000..c0ed9c6 --- /dev/null +++ b/Authentication/PublicStart/index.php @@ -0,0 +1,7 @@ +<?php + +$channel = "public"; +$server = "auth.equestria.horse"; + +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/PublicCallback&scope=Hub&request_credentials=default&access_type=offline"); +die(); |