summaryrefslogtreecommitdiff
path: root/Authentication/Start
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-29 15:19:02 +0100
committerMinteck <contact@minteck.org>2023-01-29 15:19:02 +0100
commitbdc6e413162587faea3e528fed4efa81e0f8a73f (patch)
tree36da38844f84b5cf84b0a6e3b942f0a04b09111a /Authentication/Start
parentee4628eb4596c1c12a7efcbfc04abd2d48f05f0b (diff)
downloadpluralconnect-bdc6e413162587faea3e528fed4efa81e0f8a73f.tar.gz
pluralconnect-bdc6e413162587faea3e528fed4efa81e0f8a73f.tar.bz2
pluralconnect-bdc6e413162587faea3e528fed4efa81e0f8a73f.zip
Updated 3 files and deleted 2 files (automated)
Diffstat (limited to 'Authentication/Start')
-rw-r--r--Authentication/Start/index.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/Authentication/Start/index.php b/Authentication/Start/index.php
index 18bde88..99f393f 100644
--- a/Authentication/Start/index.php
+++ b/Authentication/Start/index.php
@@ -1,7 +1,6 @@
<?php
-$channel = "private";
-$server = "privateauth.equestria.dev";
+$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/Callback&scope=Hub&request_credentials=default&access_type=offline");
+header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true)["oauth"]["id"] . "&response_type=code&redirect_uri=https://ponies.equestria.horse/Authentication/Callback&scope=Hub&request_credentials=default&access_type=offline");
die();