@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | function getClaims() : array |
27 | 27 | { |
28 | - return $this->claims; |
|
28 | + return $this->claims; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * @throws OAuthException |
45 | 45 | */ |
46 | 46 | public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner, |
47 | - RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
47 | + RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
48 | 48 | { |
49 | 49 | if (is_array($client->getSupportedGrantTypes()) && !in_array('authorization_code', $client->getSupportedGrantTypes())) { |
50 | 50 | throw new OAuthException('unauthorized_client', |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * @return array |
29 | 29 | */ |
30 | 30 | public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner, |
31 | - RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array; |
|
31 | + RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array; |
|
32 | 32 | |
33 | 33 | public function getDefaultResponseMode(): string; |
34 | 34 | public function isQueryResponseModeSupported(): bool; |
@@ -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 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * @throws \Exception |
61 | 61 | */ |
62 | 62 | public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner, |
63 | - RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
63 | + RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array |
|
64 | 64 | { |
65 | 65 | $data = $request->getMethod() === 'GET' ? $request->getQueryParams() : $request->getParsedBody(); |
66 | 66 |
@@ -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 |
@@ -107,7 +107,7 @@ |
||
107 | 107 | |
108 | 108 | // todo, repository for response mode |
109 | 109 | // https://developer.okta.com/docs/api/resources/oidc#parameter-details |
110 | - /* |
|
110 | + /* |
|
111 | 111 | if (isset($data['response_mode']) && $data['response_mode'] == 'post_message') { |
112 | 112 | return $this->popupResponse(['access_token' => 'a'], $redirectUri); |
113 | 113 | } else { |
@@ -212,7 +212,7 @@ |
||
212 | 212 | } |
213 | 213 | else { |
214 | 214 | if (count($redirectUris) == 1) { |
215 | - $redirectUri = $redirectUris[0]; |
|
215 | + $redirectUri = $redirectUris[0]; |
|
216 | 216 | } |
217 | 217 | else { |
218 | 218 | throw new OAuthException('invalid_request', 'The request is missing the required parameter redirect_uri.', |