@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @return array |
31 | 31 | */ |
32 | 32 | public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner, |
33 | - RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
33 | + RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
34 | 34 | { |
35 | 35 | return []; |
36 | 36 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | public function getExtendedResponseTypes(): ?array |
65 | 65 | { |
66 | - return null; |
|
66 | + return null; |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | public function isQueryResponseModeSupported(): bool |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * @return array |
60 | 60 | */ |
61 | 61 | public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner, |
62 | - RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
62 | + RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
63 | 63 | { |
64 | 64 | $data = $request->getMethod() === 'GET' ? $request->getQueryParams() : $request->getParsedBody(); |
65 | 65 |
@@ -111,8 +111,7 @@ |
||
111 | 111 | $token = $responseType->handle($request, $resourceOwner, $client, $scope)['token']; |
112 | 112 | $result['token'] = $token; |
113 | 113 | $claims['at_hash'] = 'todo'; //todo |
114 | - } |
|
115 | - else { |
|
114 | + } else { |
|
116 | 115 | $requestedScopes = isset($data['scope']) ? explode(' ', $data['scope']) : []; |
117 | 116 | |
118 | 117 | if ((empty($requestedScopes) && !is_null($scope)) || (is_array($scope) && !empty(array_diff($requestedScopes, $scope)))) { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | * @throws OAuthException |
42 | 42 | */ |
43 | 43 | public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner, |
44 | - RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
44 | + RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
45 | 45 | { |
46 | 46 | $data = $request->getMethod() === 'GET' ? $request->getQueryParams() : $request->getParsedBody(); |
47 | 47 |