|
4 | 4 |
|
5 | 5 | use Jose\Component\Core\AlgorithmManager; |
6 | 6 | use Jose\Component\Core\JWK; |
| 7 | +use Jose\Component\Core\Util\Base64UrlSafe; |
7 | 8 | use Jose\Component\Encryption\Algorithm\ContentEncryption\A128GCM; |
8 | 9 | use Jose\Component\Encryption\Algorithm\ContentEncryption\A256GCM; |
9 | 10 | use Jose\Component\Encryption\Algorithm\KeyEncryption\A128GCMKW; |
10 | 11 | use Jose\Component\Encryption\Algorithm\KeyEncryption\A256GCMKW; |
11 | | -use Jose\Component\Encryption\Compression\CompressionMethodManager; |
12 | 12 | use Jose\Component\Encryption\JWEBuilder; |
13 | 13 | use Jose\Component\Encryption\Serializer\CompactSerializer as JweCompactSerializer; |
14 | 14 | use Jose\Component\Signature\Algorithm\HS256; |
|
20 | 20 | use Lexik\Bundle\JWTAuthenticationBundle\Event\JWTInvalidEvent; |
21 | 21 | use Lexik\Bundle\JWTAuthenticationBundle\Events; |
22 | 22 | use Lexik\Bundle\JWTAuthenticationBundle\Response\JWTAuthenticationSuccessResponse; |
23 | | -use ParagonIE\ConstantTime\Base64UrlSafe; |
24 | 23 | use Symfony\Component\HttpFoundation\Cookie; |
25 | 24 | use Symfony\Component\HttpFoundation\Request; |
26 | 25 | use Symfony\Component\HttpFoundation\Response; |
@@ -337,9 +336,7 @@ private function buildJWS(array $claims, array $header, JWK $signatureKey): stri |
337 | 336 | private function buildJWE(string $payload, array $header, JWK $encryptionKey): string |
338 | 337 | { |
339 | 338 | $builder = new JWEBuilder( |
340 | | - new AlgorithmManager([new A256GCMKW(), new A128GCMKW()]), |
341 | | - new AlgorithmManager([new A256GCM(), new A128GCM()]), |
342 | | - new CompressionMethodManager([]) |
| 339 | + new AlgorithmManager([new A256GCMKW(), new A128GCMKW(), new A256GCM(), new A128GCM()]), |
343 | 340 | ); |
344 | 341 | $jwe = $builder |
345 | 342 | ->create() |
|
0 commit comments