diff options
author | Minteck <contact@minteck.org> | 2022-06-06 17:10:14 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-06-06 17:10:14 +0200 |
commit | 10b1ace835d908d32f99874facf8811534087d5b (patch) | |
tree | ecf068e4ac40f7470ca2b5ac6bd13bd8fbe13ba9 /Authentication/Start/index.php | |
download | bits-server-10b1ace835d908d32f99874facf8811534087d5b.tar.gz bits-server-10b1ace835d908d32f99874facf8811534087d5b.tar.bz2 bits-server-10b1ace835d908d32f99874facf8811534087d5b.zip |
Initial commit
Diffstat (limited to 'Authentication/Start/index.php')
-rw-r--r-- | Authentication/Start/index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Authentication/Start/index.php b/Authentication/Start/index.php new file mode 100644 index 0000000..006752e --- /dev/null +++ b/Authentication/Start/index.php @@ -0,0 +1,4 @@ +<?php + +header("Location: https://account.minteck.org/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Application.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"); +die(); |