diff --git a/Controller/AuthorizeController.php b/Controller/AuthorizeController.php index f7c6c60b..6b79897b 100644 --- a/Controller/AuthorizeController.php +++ b/Controller/AuthorizeController.php @@ -85,7 +85,7 @@ public function authorizeAction(Request $request, AuthorizeFormHandler $formHand ); if ($event->isAuthorizedClient()) { - $scope = $request->get('scope'); + $scope = $request->query->get('scope'); return $this->oAuth2Server->finishClientAuthorization(true, $user, $request, $scope); } @@ -144,8 +144,8 @@ protected function getClient(): ClientInterface $request = $this->getCurrentRequest(); - if (null === $clientId = $request->get('client_id')) { - $formData = $request->get($this->authorizeForm->getName(), []); + if (null === $clientId = $request->query->get('client_id')) { + $formData = $request->request->all($this->authorizeForm->getName()); $clientId = $formData['client_id'] ?? null; }