@@ -92,7 +92,7 @@ |
||
92 | 92 | * @param \DateTimeImmutable $expiresAt |
93 | 93 | * @param DataBag $parameters |
94 | 94 | * @param DataBag $metadatas |
95 | - * @param array $scopes |
|
95 | + * @param string[] $scopes |
|
96 | 96 | * @param null|ResourceServerId $resourceServerId |
97 | 97 | * |
98 | 98 | * @return CreateRefreshTokenCommand |
@@ -13,11 +13,11 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\Server\RefreshTokenGrant\Command; |
15 | 15 | |
16 | -use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenId; |
|
17 | 16 | use OAuth2Framework\Component\Server\Core\Client\ClientId; |
18 | 17 | use OAuth2Framework\Component\Server\Core\DataBag\DataBag; |
19 | -use OAuth2Framework\Component\Server\Core\ResourceServer\ResourceServerId; |
|
20 | 18 | use OAuth2Framework\Component\Server\Core\ResourceOwner\ResourceOwnerId; |
19 | +use OAuth2Framework\Component\Server\Core\ResourceServer\ResourceServerId; |
|
20 | +use OAuth2Framework\Component\Server\RefreshTokenGrant\RefreshTokenId; |
|
21 | 21 | |
22 | 22 | final class CreateRefreshTokenCommand |
23 | 23 | { |
@@ -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,10 +13,10 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\Server\RefreshTokenGrant; |
15 | 15 | |
16 | -use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
17 | 16 | use OAuth2Framework\Component\Server\Core\Client\Client; |
18 | 17 | use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
19 | 18 | use OAuth2Framework\Component\Server\TokenEndpoint\GrantType; |
19 | +use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
20 | 20 | use Psr\Http\Message\ServerRequestInterface; |
21 | 21 | |
22 | 22 | final class RefreshTokenGrantType implements GrantType |
@@ -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 |
@@ -39,6 +39,7 @@ |
||
39 | 39 | * @param ServerRequestInterface $request The request |
40 | 40 | * |
41 | 41 | * @throws OAuth2Exception |
42 | + * @return void |
|
42 | 43 | */ |
43 | 44 | public function checkTokenRequest(ServerRequestInterface $request); |
44 | 45 |
@@ -13,11 +13,11 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\Server\TokenEndpoint\Processor; |
15 | 15 | |
16 | -use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
17 | -use OAuth2Framework\Component\Server\TokenEndpoint\GrantType; |
|
16 | +use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
|
18 | 17 | use OAuth2Framework\Component\Server\Core\Scope\ScopePolicyManager; |
19 | 18 | use OAuth2Framework\Component\Server\Core\Scope\ScopeRepository; |
20 | -use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
|
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 ScopeProcessor |
@@ -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 | } |
@@ -167,7 +167,7 @@ |
||
167 | 167 | } |
168 | 168 | |
169 | 169 | /** |
170 | - * @return array |
|
170 | + * @return string[] |
|
171 | 171 | */ |
172 | 172 | public function getScopes(): array |
173 | 173 | { |
@@ -167,7 +167,7 @@ |
||
167 | 167 | } |
168 | 168 | |
169 | 169 | /** |
170 | - * @return array |
|
170 | + * @return string[] |
|
171 | 171 | */ |
172 | 172 | public function getScopes(): array |
173 | 173 | { |