@@ -13,12 +13,12 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\ClientAuthentication\Tests; |
15 | 15 | |
16 | +use OAuth2Framework\Component\ClientAuthentication\AuthenticationMethodManager; |
|
17 | +use OAuth2Framework\Component\ClientAuthentication\ClientSecretBasic; |
|
16 | 18 | use OAuth2Framework\Component\Core\Client\Client; |
17 | 19 | use OAuth2Framework\Component\Core\Client\ClientId; |
18 | 20 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
19 | 21 | use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
20 | -use OAuth2Framework\Component\ClientAuthentication\AuthenticationMethodManager; |
|
21 | -use OAuth2Framework\Component\ClientAuthentication\ClientSecretBasic; |
|
22 | 22 | use PHPUnit\Framework\TestCase; |
23 | 23 | use Psr\Http\Message\ServerRequestInterface; |
24 | 24 |
@@ -15,12 +15,12 @@ |
||
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Core\Client\ClientId; |
17 | 17 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
18 | +use OAuth2Framework\Component\Core\Domain\DomainObject; |
|
18 | 19 | use OAuth2Framework\Component\Core\Event\Event; |
19 | 20 | use OAuth2Framework\Component\Core\Id\Id; |
20 | -use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenId; |
|
21 | 21 | use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwnerId; |
22 | 22 | use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId; |
23 | -use OAuth2Framework\Component\Core\Domain\DomainObject; |
|
23 | +use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenId; |
|
24 | 24 | |
25 | 25 | class RefreshTokenCreatedEvent extends Event |
26 | 26 | { |
@@ -15,11 +15,11 @@ |
||
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Core\Client\Event as ClientEvent; |
17 | 17 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
18 | +use OAuth2Framework\Component\Core\Domain\DomainObject; |
|
18 | 19 | use OAuth2Framework\Component\Core\Event\Event; |
19 | -use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwnerId; |
|
20 | 20 | use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwner; |
21 | +use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwnerId; |
|
21 | 22 | use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
22 | -use OAuth2Framework\Component\Core\Domain\DomainObject; |
|
23 | 23 | use SimpleBus\Message\Recorder\ContainsRecordedMessages; |
24 | 24 | use SimpleBus\Message\Recorder\PrivateMessageRecorderCapabilities; |
25 | 25 |
@@ -21,10 +21,10 @@ |
||
21 | 21 | use OAuth2Framework\Component\Core\Client\Client; |
22 | 22 | use OAuth2Framework\Component\Core\Client\ClientId; |
23 | 23 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
24 | +use OAuth2Framework\Component\Core\TokenType\TokenType; |
|
24 | 25 | use OAuth2Framework\Component\Core\UserAccount\UserAccount; |
25 | 26 | use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
26 | 27 | use OAuth2Framework\Component\ImplicitGrant\TokenResponseType; |
27 | -use OAuth2Framework\Component\Core\TokenType\TokenType; |
|
28 | 28 | use PHPUnit\Framework\TestCase; |
29 | 29 | use Prophecy\Argument; |
30 | 30 |
@@ -13,14 +13,14 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\RefreshTokenGrant\Tests; |
15 | 15 | |
16 | -use OAuth2Framework\Component\RefreshTokenGrant\RefreshToken; |
|
17 | -use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenId; |
|
18 | -use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenRepository; |
|
19 | -use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenRevocationTypeHint; |
|
20 | 16 | use OAuth2Framework\Component\Core\Client\ClientId; |
21 | 17 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
22 | 18 | use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId; |
23 | 19 | use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
20 | +use OAuth2Framework\Component\RefreshTokenGrant\RefreshToken; |
|
21 | +use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenId; |
|
22 | +use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenRepository; |
|
23 | +use OAuth2Framework\Component\RefreshTokenGrant\RefreshTokenRevocationTypeHint; |
|
24 | 24 | use OAuth2Framework\Component\TokenIntrospectionEndpoint\TokenTypeHint; |
25 | 25 | use PHPUnit\Framework\TestCase; |
26 | 26 | use Prophecy\Argument; |
@@ -28,6 +28,7 @@ |
||
28 | 28 | |
29 | 29 | /** |
30 | 30 | * @param AuthorizationCode $authorizationCode |
31 | + * @return void |
|
31 | 32 | */ |
32 | 33 | public function save(AuthorizationCode $authorizationCode): void; |
33 | 34 | } |
@@ -13,8 +13,11 @@ discard block |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\AuthorizationCodeGrant\Tests; |
15 | 15 | |
16 | +use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCode; |
|
16 | 17 | use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeId; |
18 | +use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeIdGenerator; |
|
17 | 19 | use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeRepository; |
20 | +use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeResponseType; |
|
18 | 21 | use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\PKCEMethodManager; |
19 | 22 | use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\Plain; |
20 | 23 | use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\S256; |
@@ -22,9 +25,6 @@ discard block |
||
22 | 25 | use OAuth2Framework\Component\Core\Client\Client; |
23 | 26 | use OAuth2Framework\Component\Core\Client\ClientId; |
24 | 27 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
25 | -use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCode; |
|
26 | -use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeResponseType; |
|
27 | -use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeIdGenerator; |
|
28 | 28 | use OAuth2Framework\Component\Core\UserAccount\UserAccount; |
29 | 29 | use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
30 | 30 | use PHPUnit\Framework\TestCase; |
@@ -26,16 +26,19 @@ |
||
26 | 26 | /** |
27 | 27 | * @param array $configs |
28 | 28 | * @param ContainerBuilder $container |
29 | + * @return void |
|
29 | 30 | */ |
30 | 31 | public function load(array $configs, ContainerBuilder $container); |
31 | 32 | |
32 | 33 | /** |
33 | 34 | * @param ContainerBuilder $container |
35 | + * @return void |
|
34 | 36 | */ |
35 | 37 | public function build(ContainerBuilder $container); |
36 | 38 | |
37 | 39 | /** |
38 | 40 | * @param NodeDefinition $node |
41 | + * @return void |
|
39 | 42 | */ |
40 | 43 | public function getNodeDefinition(ArrayNodeDefinition $node, ArrayNodeDefinition $rootNode); |
41 | 44 |
@@ -13,19 +13,19 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\AuthorizationCodeGrant\Tests; |
15 | 15 | |
16 | +use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCode; |
|
17 | +use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeGrantType; |
|
18 | +use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeId; |
|
19 | +use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeRepository; |
|
16 | 20 | use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\PKCEMethodManager; |
17 | 21 | use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\Plain; |
18 | 22 | use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\S256; |
19 | 23 | use OAuth2Framework\Component\Core\Client\Client; |
20 | 24 | use OAuth2Framework\Component\Core\Client\ClientId; |
21 | 25 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
22 | -use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId; |
|
23 | 26 | use OAuth2Framework\Component\Core\Message\OAuth2Message; |
27 | +use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId; |
|
24 | 28 | use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
25 | -use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCode; |
|
26 | -use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeGrantType; |
|
27 | -use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeId; |
|
28 | -use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeRepository; |
|
29 | 29 | use OAuth2Framework\Component\TokenEndpoint\GrantTypeData; |
30 | 30 | use PHPUnit\Framework\TestCase; |
31 | 31 | use Prophecy\Argument; |