@@ 291-298 (lines=8) @@ | ||
288 | $this->approvalStorage->storeApproval($approval); |
|
289 | } |
|
290 | ||
291 | switch ($postAuthorizeRequest['response_type']) { |
|
292 | case 'code': |
|
293 | return $this->handleCodeApproval($client, $postAuthorizeRequest, $userInfo); |
|
294 | case 'token': |
|
295 | return $this->handleTokenApproval($client, $postAuthorizeRequest, $userInfo); |
|
296 | default: |
|
297 | throw new BadRequestException('invalid response_type'); |
|
298 | } |
|
299 | } |
|
300 | ||
301 | private function handleDenial(array $postAuthorizeRequest, UserInfoInterface $userInfo) |
|
@@ 303-310 (lines=8) @@ | ||
300 | ||
301 | private function handleDenial(array $postAuthorizeRequest, UserInfoInterface $userInfo) |
|
302 | { |
|
303 | switch ($postAuthorizeRequest['response_type']) { |
|
304 | case 'code': |
|
305 | return $this->handleCodeDenial($postAuthorizeRequest, $userInfo); |
|
306 | case 'token': |
|
307 | return $this->handleTokenDenial($postAuthorizeRequest, $userInfo); |
|
308 | default: |
|
309 | throw new BadRequestException('invalid response_type'); |
|
310 | } |
|
311 | } |
|
312 | ||
313 | private function handleCodeApproval(Client $client, array $postAuthorizeRequest, UserInfoInterface $userInfo) |