Skip to content

Commit

Permalink
Update Connect.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoerlitz authored Jun 23, 2024
1 parent 730e29b commit 3387a05
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions VATGER/Auth/Service/Vatsim/Connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -71,4 +72,4 @@ public function getUserDetails(string $accessToken): mixed
return null;
}
}
}
}

0 comments on commit 3387a05

Please sign in to comment.