@@ -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; |