@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Server\AuthorizationEndpoint\Authorization; |
17 | 17 | use OAuth2Framework\Component\Server\AuthorizationEndpoint\ParameterChecker\ParameterChecker; |
18 | -use OAuth2Framework\Component\Server\Scope\Policy\ScopePolicyManager; |
|
19 | 18 | use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
19 | +use OAuth2Framework\Component\Server\Scope\Policy\ScopePolicyManager; |
|
20 | 20 | |
21 | 21 | final class ScopeParameterChecker implements ParameterChecker |
22 | 22 | { |
@@ -16,11 +16,11 @@ |
||
16 | 16 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessToken; |
17 | 17 | use OAuth2Framework\Component\Server\Core\Client\Client; |
18 | 18 | use OAuth2Framework\Component\Server\Core\ResourceOwner\ResourceOwner; |
19 | +use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
|
20 | +use OAuth2Framework\Component\Server\Scope\Policy\ScopePolicyManager; |
|
19 | 21 | use OAuth2Framework\Component\Server\TokenEndpoint\Extension\TokenEndpointExtension; |
20 | -use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
21 | 22 | use OAuth2Framework\Component\Server\TokenEndpoint\GrantType; |
22 | -use OAuth2Framework\Component\Server\Scope\Policy\ScopePolicyManager; |
|
23 | -use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
|
23 | +use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
24 | 24 | use Psr\Http\Message\ServerRequestInterface; |
25 | 25 | |
26 | 26 | final class TokenEndpointScopeExtension implements TokenEndpointExtension |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * @param int $index |
73 | 73 | * |
74 | - * @return callable |
|
74 | + * @return \Closure |
|
75 | 75 | * |
76 | 76 | * @throws OAuth2Exception |
77 | 77 | */ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | /** |
93 | 93 | * @param int $index |
94 | 94 | * |
95 | - * @return callable |
|
95 | + * @return \Closure |
|
96 | 96 | * |
97 | 97 | * @throws OAuth2Exception |
98 | 98 | */ |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\Server\Middleware; |
15 | 15 | |
16 | -use Interop\Http\Server\RequestHandlerInterface; |
|
17 | 16 | use Interop\Http\Server\MiddlewareInterface; |
17 | +use Interop\Http\Server\RequestHandlerInterface; |
|
18 | 18 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessTokenId; |
19 | 19 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessTokenRepository; |
20 | 20 | use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
@@ -38,6 +38,7 @@ |
||
38 | 38 | * @param ServerRequestInterface $request The request |
39 | 39 | * |
40 | 40 | * @throws OAuth2Exception |
41 | + * @return void |
|
41 | 42 | */ |
42 | 43 | public function checkRequest(ServerRequestInterface $request); |
43 | 44 |
@@ -14,18 +14,18 @@ |
||
14 | 14 | namespace OAuth2Framework\Component\Server\TokenEndpoint; |
15 | 15 | |
16 | 16 | use Http\Message\ResponseFactory; |
17 | -use Interop\Http\Server\RequestHandlerInterface; |
|
18 | 17 | use Interop\Http\Server\MiddlewareInterface; |
18 | +use Interop\Http\Server\RequestHandlerInterface; |
|
19 | 19 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessToken; |
20 | 20 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessTokenRepository; |
21 | 21 | use OAuth2Framework\Component\Server\Core\Client\Client; |
22 | 22 | use OAuth2Framework\Component\Server\Core\Client\ClientId; |
23 | 23 | use OAuth2Framework\Component\Server\Core\Client\ClientRepository; |
24 | -use OAuth2Framework\Component\Server\Core\ResourceOwner\ResourceOwnerId; |
|
25 | 24 | use OAuth2Framework\Component\Server\Core\ResourceOwner\ResourceOwner; |
25 | +use OAuth2Framework\Component\Server\Core\ResourceOwner\ResourceOwnerId; |
|
26 | +use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
|
26 | 27 | use OAuth2Framework\Component\Server\Core\UserAccount\UserAccountId; |
27 | 28 | use OAuth2Framework\Component\Server\Core\UserAccount\UserAccountRepository; |
28 | -use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
|
29 | 29 | use OAuth2Framework\Component\Server\TokenEndpoint\Extension\TokenEndpointExtensionManager; |
30 | 30 | use OAuth2Framework\Component\Server\TokenType\TokenType; |
31 | 31 | use Psr\Http\Message\ResponseInterface; |
@@ -128,7 +128,7 @@ |
||
128 | 128 | * @param ServerRequestInterface $request |
129 | 129 | * @param Client $client |
130 | 130 | * @param AuthenticationMethod $authenticationMethod |
131 | - * @param mixed $clientCredentials |
|
131 | + * @param string $clientCredentials |
|
132 | 132 | * |
133 | 133 | * @return bool |
134 | 134 | */ |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\Server\TokenEndpoint; |
15 | 15 | |
16 | -use Interop\Http\Server\RequestHandlerInterface; |
|
17 | 16 | use Interop\Http\Server\MiddlewareInterface; |
17 | +use Interop\Http\Server\RequestHandlerInterface; |
|
18 | 18 | use OAuth2Framework\Component\Server\Core\Client\Client; |
19 | 19 | use OAuth2Framework\Component\Server\Core\Client\ClientRepository; |
20 | 20 | use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
@@ -22,7 +22,6 @@ |
||
22 | 22 | * @param ClientId $clientId |
23 | 23 | * @param DataBag $commandParameters |
24 | 24 | * @param DataBag $validatedParameters |
25 | - * @param UserAccountId|null $userAccountId |
|
26 | 25 | * @param callable $next |
27 | 26 | * |
28 | 27 | * @return DataBag |