From 3387a055e19e2c2556548f724b4f3cc051ff2fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikolas=20G=C3=B6rlitz?= <48025581+ngoerlitz@users.noreply.github.com> Date: Mon, 24 Jun 2024 00:33:14 +0200 Subject: [PATCH] Update Connect.php --- VATGER/Auth/Service/Vatsim/Connect.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/VATGER/Auth/Service/Vatsim/Connect.php b/VATGER/Auth/Service/Vatsim/Connect.php index 1a7b033..bba3c1c 100644 --- a/VATGER/Auth/Service/Vatsim/Connect.php +++ b/VATGER/Auth/Service/Vatsim/Connect.php @@ -31,9 +31,10 @@ public function getRedirectURI(): string $base_url = $this->connectOptions["base_url"] . "/oauth/authorize"; $scopes = urlencode($this->connectOptions["scopes"]); - $redirect_url = $this->connectOptions['redirect_url']; - - return $base_url . '?response_type=code&client_id=830&scope=' . $scopes . '&redirect_uri=' . $redirect_url; + $redirectUrl = $this->connectOptions['redirect_url']; + $clientId = $this->connectOptions['client_id']; + + return $base_url . '?response_type=code&client_id=' . $clientId . '&scope=' . $scopes . '&redirect_uri=' . $redirectUrl; } public function getAuthToken(string $code): mixed @@ -71,4 +72,4 @@ public function getUserDetails(string $accessToken): mixed return null; } } -} \ No newline at end of file +}