@@ -15,13 +15,13 @@ |
||
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Server\Core\Client\ClientId; |
17 | 17 | use OAuth2Framework\Component\Server\Core\DataBag\DataBag; |
18 | +use OAuth2Framework\Component\Server\Core\DomainObject; |
|
18 | 19 | use OAuth2Framework\Component\Server\Core\Event\Event; |
19 | 20 | use OAuth2Framework\Component\Server\Core\Event\EventId; |
20 | 21 | use OAuth2Framework\Component\Server\Core\Id\Id; |
21 | -use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenId; |
|
22 | 22 | use OAuth2Framework\Component\Server\Core\ResourceOwner\ResourceOwnerId; |
23 | 23 | use OAuth2Framework\Component\Server\Core\ResourceServer\ResourceServerId; |
24 | -use OAuth2Framework\Component\Server\Core\DomainObject; |
|
24 | +use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenId; |
|
25 | 25 | |
26 | 26 | final class RefreshTokenCreatedEvent extends Event |
27 | 27 | { |
@@ -13,14 +13,14 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\Server\RefreshTokenGrant\Tests; |
15 | 15 | |
16 | -use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshToken; |
|
17 | -use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenId; |
|
18 | -use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenRepository; |
|
19 | -use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenTypeHint; |
|
20 | 16 | use OAuth2Framework\Component\Server\Core\Client\ClientId; |
21 | 17 | use OAuth2Framework\Component\Server\Core\DataBag\DataBag; |
22 | 18 | use OAuth2Framework\Component\Server\Core\ResourceServer\ResourceServerId; |
23 | 19 | use OAuth2Framework\Component\Server\Core\UserAccount\UserAccountId; |
20 | +use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshToken; |
|
21 | +use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenId; |
|
22 | +use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenRepository; |
|
23 | +use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenTypeHint; |
|
24 | 24 | use PHPUnit\Framework\TestCase; |
25 | 25 | use Prophecy\Argument; |
26 | 26 |
@@ -31,6 +31,7 @@ |
||
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @param Token $token |
34 | + * @return void |
|
34 | 35 | */ |
35 | 36 | public function revoke(Token $token); |
36 | 37 | } |
@@ -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 | */ |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessToken; |
17 | 17 | use OAuth2Framework\Component\Server\Core\Client\Client; |
18 | -use OAuth2Framework\Component\Server\Core\ResourceOwner\ResourceOwner; |
|
19 | 18 | use OAuth2Framework\Component\Server\Core\Exception\OAuth2Exception; |
19 | +use OAuth2Framework\Component\Server\Core\ResourceOwner\ResourceOwner; |
|
20 | 20 | use OAuth2Framework\Component\Server\TokenEndpoint\GrantType; |
21 | 21 | use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
22 | 22 | use Psr\Http\Message\ServerRequestInterface; |
@@ -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 |
@@ -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 | */ |
@@ -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 |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessToken; |
17 | 17 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessTokenId; |
18 | -use OAuth2Framework\Component\Server\Core\AccessToken\AccessTokenRepository; |
|
19 | 18 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessTokenIntrospectionTypeHint; |
19 | +use OAuth2Framework\Component\Server\Core\AccessToken\AccessTokenRepository; |
|
20 | 20 | use OAuth2Framework\Component\Server\Core\Client\ClientId; |
21 | 21 | use OAuth2Framework\Component\Server\Core\DataBag\DataBag; |
22 | 22 | use OAuth2Framework\Component\Server\Core\ResourceServer\ResourceServerId; |
@@ -14,10 +14,10 @@ |
||
14 | 14 | namespace OAuth2Framework\Component\Server\AuthorizationCodeGrant; |
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Server\AuthorizationCodeGrant\PKCEMethod\PKCEMethodManager; |
17 | -use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
18 | 17 | use OAuth2Framework\Component\Server\Core\Client\Client; |
19 | 18 | use OAuth2Framework\Component\Server\Core\Exception\OAuth2Exception; |
20 | 19 | use OAuth2Framework\Component\Server\TokenEndpoint\GrantType; |
20 | +use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
21 | 21 | use Psr\Http\Message\ServerRequestInterface; |
22 | 22 | |
23 | 23 | final class AuthorizationCodeGrantType implements GrantType |