@@ -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 |
@@ -14,17 +14,17 @@ |
||
14 | 14 | namespace OAuth2Framework\ServerBundle\Controller; |
15 | 15 | |
16 | 16 | use Http\Message\MessageFactory; |
17 | -use OAuth2Framework\Component\AuthorizationEndpoint\ParameterChecker\ParameterCheckerManager; |
|
18 | -use OAuth2Framework\Component\AuthorizationEndpoint\UserAccount\UserAccountCheckerManager; |
|
19 | -use OAuth2Framework\ServerBundle\Form\FormFactory; |
|
20 | -use OAuth2Framework\ServerBundle\Form\Handler\AuthorizationFormHandler; |
|
21 | -use OAuth2Framework\ServerBundle\Form\Model\AuthorizationModel; |
|
22 | 17 | use OAuth2Framework\Component\AuthorizationEndpoint\Authorization; |
23 | 18 | use OAuth2Framework\Component\AuthorizationEndpoint\AuthorizationEndpoint; |
24 | 19 | use OAuth2Framework\Component\AuthorizationEndpoint\AuthorizationRequestLoader; |
25 | 20 | use OAuth2Framework\Component\AuthorizationEndpoint\ConsentScreen\ExtensionManager; |
26 | 21 | use OAuth2Framework\Component\AuthorizationEndpoint\Exception\ProcessAuthorizationException; |
22 | +use OAuth2Framework\Component\AuthorizationEndpoint\ParameterChecker\ParameterCheckerManager; |
|
23 | +use OAuth2Framework\Component\AuthorizationEndpoint\UserAccount\UserAccountCheckerManager; |
|
27 | 24 | use OAuth2Framework\Component\AuthorizationEndpoint\UserAccount\UserAccountDiscovery; |
25 | +use OAuth2Framework\ServerBundle\Form\FormFactory; |
|
26 | +use OAuth2Framework\ServerBundle\Form\Handler\AuthorizationFormHandler; |
|
27 | +use OAuth2Framework\ServerBundle\Form\Model\AuthorizationModel; |
|
28 | 28 | use Psr\Http\Message\ResponseInterface; |
29 | 29 | use Psr\Http\Message\ServerRequestInterface; |
30 | 30 | use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; |
@@ -25,6 +25,7 @@ |
||
25 | 25 | * @throws Exception\ProcessAuthorizationException |
26 | 26 | * @throws Exception\RedirectToLoginPageException |
27 | 27 | * @throws Exception\ShowConsentScreenException |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function check(Authorization $authorization); |
30 | 31 | } |
@@ -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; |
@@ -15,7 +15,6 @@ discard block |
||
15 | 15 | |
16 | 16 | use Http\Message\MessageFactory\DiactorosMessageFactory; |
17 | 17 | use Http\Message\ResponseFactory; |
18 | -use Psr\Http\Server\RequestHandlerInterface; |
|
19 | 18 | use OAuth2Framework\Component\Core\ResourceServer\ResourceServer; |
20 | 19 | use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId; |
21 | 20 | use OAuth2Framework\Component\Core\Token\Token; |
@@ -24,6 +23,7 @@ discard block |
||
24 | 23 | use OAuth2Framework\Component\TokenIntrospectionEndpoint\TokenTypeHintManager; |
25 | 24 | use PHPUnit\Framework\TestCase; |
26 | 25 | use Psr\Http\Message\ServerRequestInterface; |
26 | +use Psr\Http\Server\RequestHandlerInterface; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @group TokenIntrospectionEndpoint |
@@ -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; |
@@ -18,10 +18,10 @@ |
||
18 | 18 | use Jose\Component\Core\JWK; |
19 | 19 | use Jose\Component\Core\JWKSet; |
20 | 20 | use Jose\Component\Encryption\JWEBuilder; |
21 | +use Jose\Component\Encryption\Serializer\CompactSerializer as JweCompactSerializer; |
|
21 | 22 | use Jose\Component\KeyManagement\JKUFactory; |
22 | 23 | use Jose\Component\Signature\JWSBuilder; |
23 | 24 | use Jose\Component\Signature\Serializer\CompactSerializer as JwsCompactSerializer; |
24 | -use Jose\Component\Encryption\Serializer\CompactSerializer as JweCompactSerializer; |
|
25 | 25 | use OAuth2Framework\Component\AuthorizationCodeGrant\AuthorizationCodeId; |
26 | 26 | use OAuth2Framework\Component\Core\AccessToken\AccessToken; |
27 | 27 | use OAuth2Framework\Component\Core\AccessToken\AccessTokenId; |