@@ -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; |
@@ -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; |
@@ -13,16 +13,16 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\AuthorizationEndpoint; |
15 | 15 | |
16 | -use OAuth2Framework\Component\AuthorizationEndpoint\ParameterChecker\ParameterCheckerManager; |
|
17 | -use OAuth2Framework\Component\AuthorizationEndpoint\UserAccount\UserAccountCheckerManager; |
|
18 | -use Psr\Http\Server\RequestHandlerInterface; |
|
19 | -use Psr\Http\Server\MiddlewareInterface; |
|
20 | 16 | use OAuth2Framework\Component\AuthorizationEndpoint\ConsentScreen\ExtensionManager; |
21 | 17 | use OAuth2Framework\Component\AuthorizationEndpoint\Exception\OAuth2AuthorizationException; |
18 | +use OAuth2Framework\Component\AuthorizationEndpoint\ParameterChecker\ParameterCheckerManager; |
|
19 | +use OAuth2Framework\Component\AuthorizationEndpoint\UserAccount\UserAccountCheckerManager; |
|
22 | 20 | use OAuth2Framework\Component\AuthorizationEndpoint\UserAccount\UserAccountDiscovery; |
23 | 21 | use OAuth2Framework\Component\Core\Message\OAuth2Message; |
24 | 22 | use Psr\Http\Message\ResponseInterface; |
25 | 23 | use Psr\Http\Message\ServerRequestInterface; |
24 | +use Psr\Http\Server\MiddlewareInterface; |
|
25 | +use Psr\Http\Server\RequestHandlerInterface; |
|
26 | 26 | |
27 | 27 | abstract class AuthorizationEndpoint implements MiddlewareInterface |
28 | 28 | { |
@@ -14,21 +14,21 @@ |
||
14 | 14 | namespace OAuth2Framework\Component\OpenIdConnect\UserInfoEndpoint; |
15 | 15 | |
16 | 16 | use Http\Message\ResponseFactory; |
17 | -use Psr\Http\Server\RequestHandlerInterface; |
|
18 | -use Psr\Http\Server\MiddlewareInterface; |
|
19 | 17 | use Jose\Component\Core\JWKSet; |
20 | 18 | use Jose\Component\Encryption\JWEBuilder; |
21 | 19 | use Jose\Component\Signature\JWSBuilder; |
22 | 20 | use OAuth2Framework\Component\Core\AccessToken\AccessToken; |
23 | 21 | use OAuth2Framework\Component\Core\Client\Client; |
24 | 22 | use OAuth2Framework\Component\Core\Client\ClientRepository; |
25 | -use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
|
23 | +use OAuth2Framework\Component\Core\Message\OAuth2Message; |
|
26 | 24 | use OAuth2Framework\Component\Core\UserAccount\UserAccount; |
25 | +use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
|
27 | 26 | use OAuth2Framework\Component\Core\UserAccount\UserAccountRepository; |
28 | -use OAuth2Framework\Component\Core\Message\OAuth2Message; |
|
29 | 27 | use OAuth2Framework\Component\OpenIdConnect\IdTokenBuilderFactory; |
30 | 28 | use Psr\Http\Message\ResponseInterface; |
31 | 29 | use Psr\Http\Message\ServerRequestInterface; |
30 | +use Psr\Http\Server\MiddlewareInterface; |
|
31 | +use Psr\Http\Server\RequestHandlerInterface; |
|
32 | 32 | |
33 | 33 | class UserInfoEndpoint implements MiddlewareInterface |
34 | 34 | { |
@@ -13,9 +13,9 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\ResourceServerAuthentication; |
15 | 15 | |
16 | +use OAuth2Framework\Component\Core\Message\OAuth2Message; |
|
16 | 17 | use OAuth2Framework\Component\Core\ResourceServer\ResourceServer; |
17 | 18 | use OAuth2Framework\Component\Core\ResourceServer\ResourceServerId; |
18 | -use OAuth2Framework\Component\Core\Message\OAuth2Message; |
|
19 | 19 | use Psr\Http\Message\ServerRequestInterface; |
20 | 20 | |
21 | 21 | class AuthenticationMethodManager |
@@ -18,8 +18,8 @@ |
||
18 | 18 | use OAuth2Framework\Component\Core\Client\Client; |
19 | 19 | use OAuth2Framework\Component\Core\Client\ClientId; |
20 | 20 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
21 | -use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwner; |
|
22 | 21 | use OAuth2Framework\Component\Core\Message\OAuth2Message; |
22 | +use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwner; |
|
23 | 23 | use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
24 | 24 | use OAuth2Framework\Component\Scope\Policy\NoScopePolicy; |
25 | 25 | use OAuth2Framework\Component\Scope\Policy\ScopePolicyManager; |
@@ -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 OAuth2Message |
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 OAuth2Message |
98 | 98 | */ |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Core\AccessToken\AccessToken; |
17 | 17 | use OAuth2Framework\Component\Core\Client\Client; |
18 | -use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwner; |
|
19 | 18 | use OAuth2Framework\Component\Core\Message\OAuth2Message; |
19 | +use OAuth2Framework\Component\Core\ResourceOwner\ResourceOwner; |
|
20 | 20 | use OAuth2Framework\Component\TokenEndpoint\GrantType; |
21 | 21 | use OAuth2Framework\Component\TokenEndpoint\GrantTypeData; |
22 | 22 | use Psr\Http\Message\ServerRequestInterface; |