@@ -15,9 +15,6 @@ discard block |
||
15 | 15 | |
16 | 16 | use Http\Message\MessageFactory\DiactorosMessageFactory; |
17 | 17 | use Http\Message\ResponseFactory; |
18 | -use Prophecy\Prophecy\ObjectProphecy; |
|
19 | -use Psr\Http\Message\StreamInterface; |
|
20 | -use Psr\Http\Server\RequestHandlerInterface; |
|
21 | 18 | use OAuth2Framework\Component\Core\Client\Client; |
22 | 19 | use OAuth2Framework\Component\Core\Client\ClientId; |
23 | 20 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
@@ -27,7 +24,10 @@ discard block |
||
27 | 24 | use OAuth2Framework\Component\TokenRevocationEndpoint\TokenTypeHint; |
28 | 25 | use OAuth2Framework\Component\TokenRevocationEndpoint\TokenTypeHintManager; |
29 | 26 | use PHPUnit\Framework\TestCase; |
27 | +use Prophecy\Prophecy\ObjectProphecy; |
|
30 | 28 | use Psr\Http\Message\ServerRequestInterface; |
29 | +use Psr\Http\Message\StreamInterface; |
|
30 | +use Psr\Http\Server\RequestHandlerInterface; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @group TokenRevocationEndpoint |
@@ -155,6 +155,10 @@ |
||
155 | 155 | $this->authorizationCodeRepository = $authorizationCodeRepository; |
156 | 156 | } |
157 | 157 | |
158 | + /** |
|
159 | + * @param null|JKUFactory $jkuFactory |
|
160 | + * @param null|AuthorizationCodeRepository $authorizationCodeRepository |
|
161 | + */ |
|
158 | 162 | public static function create(string $issuer, UserInfo $userinfo, int $lifetime, Client $client, UserAccount $userAccount, string $redirectUri, ?JKUFactory $jkuFactory, ?AuthorizationCodeRepository $authorizationCodeRepository): self |
159 | 163 | { |
160 | 164 | return new self($issuer, $userinfo, $lifetime, $client, $userAccount, $redirectUri, $jkuFactory, $authorizationCodeRepository); |
@@ -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\AuthorizationCodeGrant\AuthorizationCodeRepository; |
27 | 27 | use OAuth2Framework\Component\Core\AccessToken\AccessToken; |