summaryrefslogtreecommitdiff
path: root/Authentication/Mobile/index.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-06-12 22:38:03 +0200
committerMinteck <contact@minteck.org>2022-06-12 22:38:03 +0200
commit146774a4ed1fca946fcc24d66dcca7ffe21dcd72 (patch)
tree7e6cd0c39554fd68e4241296e3ee97a2bf1ce141 /Authentication/Mobile/index.php
parent6a0e17d3726241cb5f899c28db7815444b9b8e42 (diff)
downloadbits-server-146774a4ed1fca946fcc24d66dcca7ffe21dcd72.tar.gz
bits-server-146774a4ed1fca946fcc24d66dcca7ffe21dcd72.tar.bz2
bits-server-146774a4ed1fca946fcc24d66dcca7ffe21dcd72.zip
Working around a bug
Diffstat (limited to 'Authentication/Mobile/index.php')
-rw-r--r--Authentication/Mobile/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Authentication/Mobile/index.php b/Authentication/Mobile/index.php
new file mode 100644
index 0000000..5811228
--- /dev/null
+++ b/Authentication/Mobile/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/MobileCallback&scope=Hub&request_credentials=default&access_type=offline");
+die();