diff --git a/.gitattributes b/.gitattributes index 80ff8476a..89a60985d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,7 +7,7 @@ /.editorconfig export-ignore /.gitattributes export-ignore /.gitignore export-ignore -/.gitsplit.yml export-ignore +/monorepo-builder.php export-ignore /CODE_OF_CONDUCT.md export-ignore /deptrac.yaml export-ignore /ecs.php export-ignore diff --git a/.github/workflows/gitsplit.yml b/.github/workflows/gitsplit.yml index 8229971ca..d6d6ce3fe 100644 --- a/.github/workflows/gitsplit.yml +++ b/.github/workflows/gitsplit.yml @@ -3,16 +3,137 @@ on: push: tags: - '*' - release: - types: [published] + +env: + GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} jobs: - gitsplit: + packages_split: runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + # define package to repository map + package: + - + local_path: 'src/Component/Core' + split_repository: 'jwt-core' + - + local_path: 'src/Component/Checker' + split_repository: 'jwt-checker' + - + local_path: 'src/Component/Signature' + split_repository: 'jwt-signature' + - + local_path: 'src/Component/Encryption' + split_repository: 'jwt-encryption' + - + local_path: 'src/Component/KeyManagement' + split_repository: 'jwt-key-mgmt' + - + local_path: 'src/Component/Console' + split_repository: 'jwt-console' + - + local_path: 'src/Component/NestedToken' + split_repository: 'jwt-nested-token' + - + local_path: 'src/Bundle/JoseFramework' + split_repository: 'jwt-bundle' + - + local_path: 'src/EncryptionAlgorithm/ContentEncryption/AESCBC' + split_repository: 'jwt-encryption-algorithm-aescbc' + - + local_path: 'src/EncryptionAlgorithm/ContentEncryption/AESGCM' + split_repository: 'jwt-encryption-algorithm-aesgcm' + - + local_path: 'src/EncryptionAlgorithm/KeyEncryption/AESGCMKW' + split_repository: 'jwt-encryption-algorithm-aesgcmkw' + - + local_path: 'src/EncryptionAlgorithm/KeyEncryption/AESKW' + split_repository: 'jwt-encryption-algorithm-aeskw' + - + local_path: 'src/EncryptionAlgorithm/KeyEncryption/Direct' + split_repository: 'jwt-encryption-algorithm-dir' + - + local_path: 'src/EncryptionAlgorithm/KeyEncryption/ECDHES' + split_repository: 'jwt-encryption-algorithm-ecdh-es' + - + local_path: 'src/EncryptionAlgorithm/KeyEncryption/PBES2' + split_repository: 'jwt-encryption-algorithm-pbes2' + - + local_path: 'src/EncryptionAlgorithm/KeyEncryption/RSA' + split_repository: 'jwt-encryption-algorithm-rsa' + - + local_path: 'src/SignatureAlgorithm/ECDSA' + split_repository: 'jwt-signature-algorithm-ecdsa' + - + local_path: 'src/SignatureAlgorithm/EdDSA' + split_repository: 'jwt-signature-algorithm-eddsa' + - + local_path: 'src/SignatureAlgorithm/None' + split_repository: 'jwt-signature-algorithm-none' + - + local_path: 'src/SignatureAlgorithm/HMAC' + split_repository: 'jwt-signature-algorithm-hmac' + - + local_path: 'src/SignatureAlgorithm/RSA' + split_repository: 'jwt-signature-algorithm-rsa' + - + local_path: 'src/SignatureAlgorithm/Experimental' + split_repository: 'jwt-signature-algorithm-experimental' + - + local_path: 'src/EncryptionAlgorithm/Experimental' + split_repository: 'jwt-encryption-algorithm-experimental' + - + local_path: 'src/Ecc' + split_repository: 'jwt-util-ecc' + - + local_path: 'packs/encryption' + split_repository: 'encryption-pack' + - + local_path: 'packs/signature' + split_repository: 'signature-pack' + steps: - - name: checkout - run: git clone https://github.com/web-token/jwt-framework /home/runner/work/web-token/jwt-framework && cd /home/runner/work/web-token/jwt-framework - - name: Split repositories - run: docker run --rm -t -e GH_TOKEN -v /cache/gitsplit:/cache/gitsplit -v /home/runner/work/web-token/jwt-framework:/srv jderusse/gitsplit gitsplit - env: - GH_TOKEN: ${{ secrets.GITSPLIT_TOKEN }} + - uses: actions/checkout@v2 + + # no tag + - + if: "!startsWith(github.ref, 'refs/tags/')" + uses: "symplify/monorepo-split-github-action@2.1" + with: + # ↓ split "src/*" directory + package_directory: '${{ matrix.package.local_path }}' + + # ↓ into https://github.com/web-token/* repository + repository_organization: 'web-token' + repository_name: '${{ matrix.package.split_repository }}' + + # [optional, with "github.com" as default] + #repository_host: git.private.com:1234 + + # ↓ the user signed under the split commit + user_name: "Florent Morselli" + user_email: "florent.morselli@spomky-labs.com" + + # with tag + - + if: "startsWith(github.ref, 'refs/tags/')" + uses: "symplify/monorepo-split-github-action@2.1" + with: + tag: ${GITHUB_REF#refs/tags/} + + # ↓ split "src/*" directory + package_directory: '${{ matrix.package.local_path }}' + + # ↓ into https://github.com/web-token/* repository + repository_organization: 'web-token' + repository_name: '${{ matrix.package.split_repository }}' + + # [optional, with "github.com" as default] + #repository_host: git.private.com:1234 + + # ↓ the user signed under the split commit + user_name: "Florent Morselli" + user_email: "florent.morselli@spomky-labs.com" diff --git a/.github/workflows/tweet.yml b/.github/workflows/tweet.yml deleted file mode 100644 index 53ea014f7..000000000 --- a/.github/workflows/tweet.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: tweet -on: - push: - tags: - - '*' - release: - types: [ published ] - -jobs: - tweet: - runs-on: ubuntu-latest - steps: - - name: Tweet - uses: snow-actions/tweet@v1.4.0 - with: - status: | - We are proud to announce that ${{ github.repository }} · ${{ github.event.release.name }} - ${{ github.event.release.html_url }} is now released 🚀. #jwt #jwe #jws #jwk #jwa #php #symfony - env: - CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }} - CONSUMER_API_SECRET_KEY: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} - ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} - ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} diff --git a/.gitsplit.yml b/.gitsplit.yml deleted file mode 100644 index a5e397288..000000000 --- a/.gitsplit.yml +++ /dev/null @@ -1,57 +0,0 @@ -splits: - - prefix: "src/Component/Core" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-core.git" - - prefix: "src/Component/Checker" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-checker.git" - - prefix: "src/Component/Signature" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature.git" - - prefix: "src/Component/Encryption" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption.git" - - prefix: "src/Component/KeyManagement" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-key-mgmt.git" - - prefix: "src/Component/Console" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-console.git" - - prefix: "src/Component/NestedToken" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-nested-token.git" - - prefix: "src/Bundle/JoseFramework" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-bundle.git" - - prefix: "src/EncryptionAlgorithm/ContentEncryption/AESCBC" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-aescbc.git" - - prefix: "src/EncryptionAlgorithm/ContentEncryption/AESGCM" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-aesgcm.git" - - prefix: "src/EncryptionAlgorithm/KeyEncryption/AESGCMKW" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-aesgcmkw.git" - - prefix: "src/EncryptionAlgorithm/KeyEncryption/AESKW" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-aeskw.git" - - prefix: "src/EncryptionAlgorithm/KeyEncryption/Direct" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-dir.git" - - prefix: "src/EncryptionAlgorithm/KeyEncryption/ECDHES" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-ecdh-es.git" - - prefix: "src/EncryptionAlgorithm/KeyEncryption/PBES2" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-pbes2.git" - - prefix: "src/EncryptionAlgorithm/KeyEncryption/RSA" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-rsa.git" - - prefix: "src/SignatureAlgorithm/ECDSA" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-ecdsa.git" - - prefix: "src/SignatureAlgorithm/EdDSA" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-eddsa.git" - - prefix: "src/SignatureAlgorithm/None" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-none.git" - - prefix: "src/SignatureAlgorithm/HMAC" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-hmac.git" - - prefix: "src/SignatureAlgorithm/RSA" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-rsa.git" - - prefix: "src/SignatureAlgorithm/Experimental" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-experimental.git" - - prefix: "src/EncryptionAlgorithm/Experimental" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-experimental.git" - - prefix: "src/Ecc" - target: "https://${GH_TOKEN}@github.com/web-token/jwt-util-ecc.git" - - prefix: "packs/encryption" - target: "https://${GH_TOKEN}@github.com/web-token/encryption-pack.git" - - prefix: "packs/signature" - target: "https://${GH_TOKEN}@github.com/web-token/signature-pack.git" - -origins: - - ^\d+\.\d+\.x$ - - ^\d+\.\d+\.\d+$ diff --git a/composer.json b/composer.json index 6fab5f559..af300658f 100644 --- a/composer.json +++ b/composer.json @@ -3,52 +3,94 @@ "description": "JSON Object Signing and Encryption library for PHP and Symfony Bundle.", "type": "symfony-bundle", "license": "MIT", - "keywords": ["JWS", "JWT", "JWE", "JWA", "JWK", "JWKSet", "Jot", "Jose", "RFC7515", "RFC7516", "RFC7517", "RFC7518", "RFC7519", "RFC7520", "Bundle", "Symfony"], + "keywords": [ + "JWS", + "JWT", + "JWE", + "JWA", + "JWK", + "JWKSet", + "Jot", + "Jose", + "RFC7515", + "RFC7516", + "RFC7517", + "RFC7518", + "RFC7519", + "RFC7520", + "Bundle", + "Symfony" + ], "homepage": "https://github.com/web-token/jwt-framework", "authors": [ { "name": "Florent Morselli", "homepage": "https://github.com/Spomky" - },{ + }, + { "name": "All contributors", - "homepage": "https://github.com/web-token/jwt-framework/contributors" + "homepage": "https://github.com/web-token/jwt-bundle/contributors" } ], "autoload": { "psr-4": { - "Jose\\": "src/", - "Jose\\Component\\Signature\\Algorithm\\": [ - "src/SignatureAlgorithm/ECDSA", - "src/SignatureAlgorithm/EdDSA", - "src/SignatureAlgorithm/HMAC", - "src/SignatureAlgorithm/None", - "src/SignatureAlgorithm/RSA", - "src/SignatureAlgorithm/Experimental" - ], + "Jose\\": "src/", + "Jose\\Bundle\\JoseFramework\\": "src/Bundle/JoseFramework/", + "Jose\\Component\\Checker\\": "src/Component/Checker/", + "Jose\\Component\\Console\\": "src/Component/Console/", + "Jose\\Component\\Core\\": "src/Component/Core/", "Jose\\Component\\Core\\Util\\Ecc\\": [ - "src/Ecc" + "src/Ecc", + "src/Ecc/" ], + "Jose\\Component\\Encryption\\": "src/Component/Encryption/", "Jose\\Component\\Encryption\\Algorithm\\": [ - "src/EncryptionAlgorithm/Experimental" + "src/EncryptionAlgorithm/Experimental", + "src/EncryptionAlgorithm/Experimental/" + ], + "Jose\\Component\\Encryption\\Algorithm\\ContentEncryption\\": [ + "src/EncryptionAlgorithm/ContentEncryption/AESCBC", + "src/EncryptionAlgorithm/ContentEncryption/AESCBC/", + "src/EncryptionAlgorithm/ContentEncryption/AESGCM", + "src/EncryptionAlgorithm/ContentEncryption/AESGCM/" ], "Jose\\Component\\Encryption\\Algorithm\\KeyEncryption\\": [ "src/EncryptionAlgorithm/KeyEncryption/AESGCMKW", + "src/EncryptionAlgorithm/KeyEncryption/AESGCMKW/", "src/EncryptionAlgorithm/KeyEncryption/AESKW", + "src/EncryptionAlgorithm/KeyEncryption/AESKW/", "src/EncryptionAlgorithm/KeyEncryption/Direct", + "src/EncryptionAlgorithm/KeyEncryption/Direct/", "src/EncryptionAlgorithm/KeyEncryption/ECDHES", + "src/EncryptionAlgorithm/KeyEncryption/ECDHES/", "src/EncryptionAlgorithm/KeyEncryption/PBES2", - "src/EncryptionAlgorithm/KeyEncryption/RSA" + "src/EncryptionAlgorithm/KeyEncryption/PBES2/", + "src/EncryptionAlgorithm/KeyEncryption/RSA", + "src/EncryptionAlgorithm/KeyEncryption/RSA/" ], - "Jose\\Component\\Encryption\\Algorithm\\ContentEncryption\\": [ - "src/EncryptionAlgorithm/ContentEncryption/AESGCM", - "src/EncryptionAlgorithm/ContentEncryption/AESCBC" + "Jose\\Component\\KeyManagement\\": "src/Component/KeyManagement/", + "Jose\\Component\\NestedToken\\": "src/Component/NestedToken/", + "Jose\\Component\\Signature\\": "src/Component/Signature/", + "Jose\\Component\\Signature\\Algorithm\\": [ + "src/SignatureAlgorithm/ECDSA", + "src/SignatureAlgorithm/ECDSA/", + "src/SignatureAlgorithm/EdDSA", + "src/SignatureAlgorithm/EdDSA/", + "src/SignatureAlgorithm/Experimental", + "src/SignatureAlgorithm/Experimental/", + "src/SignatureAlgorithm/HMAC", + "src/SignatureAlgorithm/HMAC/", + "src/SignatureAlgorithm/None", + "src/SignatureAlgorithm/None/", + "src/SignatureAlgorithm/RSA", + "src/SignatureAlgorithm/RSA/" ] } }, "autoload-dev": { "psr-4": { - "Jose\\Performance\\": "performance/", - "Jose\\Tests\\": "tests/" + "Jose\\Performance\\": "performance/", + "Jose\\Tests\\": "tests/" } }, "require": { @@ -101,37 +143,38 @@ "symfony/serializer": "^6.1.3", "symfony/var-dumper": "^6.1.3", "symfony/yaml": "^6.1.3", - "symplify/easy-coding-standard": "^11.0" + "symplify/easy-coding-standard": "^11.0", + "symplify/monorepo-builder": "11.2.3.72" }, "replace": { - "web-token/jwt-core": "self.version", + "web-token/encryption-pack": "self.version", + "web-token/jwt-bundle": "self.version", "web-token/jwt-checker": "self.version", - "web-token/jwt-signature": "self.version", - "web-token/jwt-encryption": "self.version", - "web-token/jwt-key-mgmt": "self.version", "web-token/jwt-console": "self.version", - "web-token/jwt-nested-token": "self.version", - "web-token/jwt-bundle": "self.version", + "web-token/jwt-core": "self.version", + "web-token/jwt-encryption": "self.version", "web-token/jwt-encryption-algorithm-aescbc": "self.version", "web-token/jwt-encryption-algorithm-aesgcm": "self.version", "web-token/jwt-encryption-algorithm-aesgcmkw": "self.version", "web-token/jwt-encryption-algorithm-aeskw": "self.version", "web-token/jwt-encryption-algorithm-dir": "self.version", "web-token/jwt-encryption-algorithm-ecdh-es": "self.version", + "web-token/jwt-encryption-algorithm-experimental": "self.version", "web-token/jwt-encryption-algorithm-pbes2": "self.version", "web-token/jwt-encryption-algorithm-rsa": "self.version", + "web-token/jwt-key-mgmt": "self.version", + "web-token/jwt-nested-token": "self.version", + "web-token/jwt-signature": "self.version", "web-token/jwt-signature-algorithm-ecdsa": "self.version", "web-token/jwt-signature-algorithm-eddsa": "self.version", - "web-token/jwt-signature-algorithm-none": "self.version", + "web-token/jwt-signature-algorithm-experimental": "self.version", "web-token/jwt-signature-algorithm-hmac": "self.version", + "web-token/jwt-signature-algorithm-none": "self.version", "web-token/jwt-signature-algorithm-rsa": "self.version", "web-token/jwt-util-ecc": "self.version", - "web-token/jwt-signature-algorithm-experimental": "self.version", - "web-token/jwt-encryption-algorithm-experimental": "self.version", - "web-token/signature-pack": "self.version", - "web-token/encryption-pack": "self.version" + "web-token/signature-pack": "self.version" }, - "suggest":{ + "suggest": { "ext-sodium": "Sodium is required for OKP key creation, EdDSA signature algorithm and ECDH-ES key encryption with OKP keys", "bjeavons/zxcvbn-php": "Adds key quality check for oct keys.", "php-http/httplug": "To enable JKU/X5U support.", diff --git a/monorepo-builder.php b/monorepo-builder.php new file mode 100644 index 000000000..85de166f9 --- /dev/null +++ b/monorepo-builder.php @@ -0,0 +1,31 @@ +packageDirectories([ + __DIR__ . '/src', + __DIR__ . '/packs', + ]); + + $mbConfig->workers([ + UpdateReplaceReleaseWorker::class, + SetCurrentMutualDependenciesReleaseWorker::class, + AddTagToChangelogReleaseWorker::class, + TagVersionReleaseWorker::class, + PushTagReleaseWorker::class, + SetNextMutualDependenciesReleaseWorker::class, + UpdateBranchAliasReleaseWorker::class, + PushNextDevReleaseWorker::class, + ]); +}; diff --git a/packs/encryption/composer.json b/packs/encryption/composer.json index 3e4d9cc7d..af6e3e9ff 100644 --- a/packs/encryption/composer.json +++ b/packs/encryption/composer.json @@ -4,14 +4,14 @@ "license": "MIT", "description": "A pack with all encryption algorithms for the web-token/jwt-encryption package", "require": { - "web-token/jwt-encryption-algorithm-aescbc": "^3.0", - "web-token/jwt-encryption-algorithm-aesgcm": "^3.0", - "web-token/jwt-encryption-algorithm-aesgcmkw": "^3.0", - "web-token/jwt-encryption-algorithm-aeskw": "^3.0", - "web-token/jwt-encryption-algorithm-dir": "^3.0", - "web-token/jwt-encryption-algorithm-ecdh-es": "^3.0", - "web-token/jwt-encryption-algorithm-pbes2": "^3.0", - "web-token/jwt-encryption-algorithm-rsa": "^3.0", - "web-token/jwt-encryption-algorithm-experimental": "^3.0" + "web-token/jwt-encryption-algorithm-aescbc": "^3.2", + "web-token/jwt-encryption-algorithm-aesgcm": "^3.2", + "web-token/jwt-encryption-algorithm-aesgcmkw": "^3.2", + "web-token/jwt-encryption-algorithm-aeskw": "^3.2", + "web-token/jwt-encryption-algorithm-dir": "^3.2", + "web-token/jwt-encryption-algorithm-ecdh-es": "^3.2", + "web-token/jwt-encryption-algorithm-pbes2": "^3.2", + "web-token/jwt-encryption-algorithm-rsa": "^3.2", + "web-token/jwt-encryption-algorithm-experimental": "^3.2" } } diff --git a/packs/signature/composer.json b/packs/signature/composer.json index 40606ca45..235ea268f 100644 --- a/packs/signature/composer.json +++ b/packs/signature/composer.json @@ -4,11 +4,11 @@ "license": "MIT", "description": "A pack with all signature algorithms for the web-token/jwt-signature package", "require": { - "web-token/jwt-signature-algorithm-ecdsa": "^3.0", - "web-token/jwt-signature-algorithm-eddsa": "^3.0", - "web-token/jwt-signature-algorithm-none": "^3.0", - "web-token/jwt-signature-algorithm-hmac": "^3.0", - "web-token/jwt-signature-algorithm-rsa": "^3.0", - "web-token/jwt-signature-algorithm-experimental": "^3.0" + "web-token/jwt-signature-algorithm-ecdsa": "^3.2", + "web-token/jwt-signature-algorithm-eddsa": "^3.2", + "web-token/jwt-signature-algorithm-none": "^3.2", + "web-token/jwt-signature-algorithm-hmac": "^3.2", + "web-token/jwt-signature-algorithm-rsa": "^3.2", + "web-token/jwt-signature-algorithm-experimental": "^3.2" } } diff --git a/rector.php b/rector.php index fe6ffb8d2..dfa7dd602 100644 --- a/rector.php +++ b/rector.php @@ -1,6 +1,8 @@ import(PHPUnitSetList::PHPUNIT_EXCEPTION); $config->import(PHPUnitSetList::PHPUNIT_YIELD_DATA_PROVIDER); $config->import(PHPUnitSetList::REMOVE_MOCKS); - $config->paths([__DIR__ . '/src', __DIR__ . '/performance', __DIR__ . '/tests']); + $config->paths([ + __DIR__ . '/ecs.php', + __DIR__ . '/rector.php', + __DIR__ . '/monorepo-builder.php', + __DIR__ . '/performance', + __DIR__ . '/src', + __DIR__ . '/tests', + ]); $config->skip([ - \Rector\Php80\Rector\Class_\AnnotationToAttributeRector::class => __DIR__ . '/tests', - \Rector\PHPUnit\Rector\Class_\AnnotationWithValueToAttributeRector::class => __DIR__ . '/tests', + AnnotationToAttributeRector::class => __DIR__ . '/tests', + AnnotationWithValueToAttributeRector::class => __DIR__ . '/tests', __DIR__ . '/src/Component/Core/JWKSet.php', __DIR__ . '/src/Bundle/JoseFramework/DependencyInjection/Source/KeyManagement/JWKSource.php', __DIR__ . '/src/Bundle/JoseFramework/DependencyInjection/Source/KeyManagement/JWKSetSource.php', diff --git a/src/Bundle/JoseFramework/composer.json b/src/Bundle/JoseFramework/composer.json index c6d45f753..d430cb9b7 100644 --- a/src/Bundle/JoseFramework/composer.json +++ b/src/Bundle/JoseFramework/composer.json @@ -44,7 +44,7 @@ "symfony/dependency-injection": "^5.4|^6.0", "symfony/event-dispatcher": "^5.4|^6.0", "symfony/http-kernel": "^5.4|^6.0", - "web-token/jwt-core": "^3.0" + "web-token/jwt-core": "^3.2" }, "suggest": { "web-token/jwt-checker": "Add header and claim checker managers as Symfony services.", diff --git a/src/Component/Checker/composer.json b/src/Component/Checker/composer.json index 7c9a1b738..3c4440027 100644 --- a/src/Component/Checker/composer.json +++ b/src/Component/Checker/composer.json @@ -40,6 +40,6 @@ "require": { "php": ">=8.1", "psr/clock": "^1.0", - "web-token/jwt-core": "^3.0" + "web-token/jwt-core": "^3.2" } } diff --git a/src/Component/Console/composer.json b/src/Component/Console/composer.json index 365c41e11..07811090d 100644 --- a/src/Component/Console/composer.json +++ b/src/Component/Console/composer.json @@ -40,6 +40,6 @@ "require": { "php": ">=8.1", "symfony/console": "^5.4|^6.0", - "web-token/jwt-key-mgmt": "^3.0" + "web-token/jwt-key-mgmt": "^3.2" } } diff --git a/src/Component/Encryption/composer.json b/src/Component/Encryption/composer.json index 439c7c14d..8710f3570 100644 --- a/src/Component/Encryption/composer.json +++ b/src/Component/Encryption/composer.json @@ -39,7 +39,7 @@ }, "require": { "php": ">=8.1", - "web-token/jwt-core": "^3.0" + "web-token/jwt-core": "^3.2" }, "suggest": { "web-token/jwt-encryption-algorithm-aescbc": "AES CBC Based Content Encryption Algorithms", diff --git a/src/Component/KeyManagement/composer.json b/src/Component/KeyManagement/composer.json index 6936e32c1..87144a633 100644 --- a/src/Component/KeyManagement/composer.json +++ b/src/Component/KeyManagement/composer.json @@ -42,7 +42,7 @@ "ext-openssl": "*", "psr/http-factory": "^1.0", "psr/http-client": "^1.0", - "web-token/jwt-core": "^3.0" + "web-token/jwt-core": "^3.2" }, "suggest": { "ext-sodium": "Sodium is required for OKP key creation, EdDSA signature algorithm and ECDH-ES key encryption with OKP keys", diff --git a/src/Component/NestedToken/composer.json b/src/Component/NestedToken/composer.json index d643dd494..d96bcdfde 100644 --- a/src/Component/NestedToken/composer.json +++ b/src/Component/NestedToken/composer.json @@ -39,7 +39,7 @@ }, "require": { "php": ">=8.1", - "web-token/jwt-encryption": "^3.0", - "web-token/jwt-signature": "^3.0" + "web-token/jwt-encryption": "^3.2", + "web-token/jwt-signature": "^3.2" } } diff --git a/src/Component/Signature/composer.json b/src/Component/Signature/composer.json index decd64b07..5e42529df 100644 --- a/src/Component/Signature/composer.json +++ b/src/Component/Signature/composer.json @@ -39,7 +39,7 @@ }, "require": { "php": ">=8.1", - "web-token/jwt-core": "^3.0" + "web-token/jwt-core": "^3.2" }, "suggest": { "web-token/jwt-signature-algorithm-ecdsa": "ECDSA Based Signature Algorithms", diff --git a/src/EncryptionAlgorithm/ContentEncryption/AESCBC/composer.json b/src/EncryptionAlgorithm/ContentEncryption/AESCBC/composer.json index 4ea12f3a8..450d996d1 100644 --- a/src/EncryptionAlgorithm/ContentEncryption/AESCBC/composer.json +++ b/src/EncryptionAlgorithm/ContentEncryption/AESCBC/composer.json @@ -40,6 +40,6 @@ "require": { "php": ">=8.1", "ext-openssl": "*", - "web-token/jwt-encryption": "^3.0" + "web-token/jwt-encryption": "^3.2" } } diff --git a/src/EncryptionAlgorithm/ContentEncryption/AESGCM/composer.json b/src/EncryptionAlgorithm/ContentEncryption/AESGCM/composer.json index 3c533f302..5a7286ec9 100644 --- a/src/EncryptionAlgorithm/ContentEncryption/AESGCM/composer.json +++ b/src/EncryptionAlgorithm/ContentEncryption/AESGCM/composer.json @@ -40,6 +40,6 @@ "require": { "php": ">=8.1", "ext-openssl": "*", - "web-token/jwt-encryption": "^3.0" + "web-token/jwt-encryption": "^3.2" } } diff --git a/src/EncryptionAlgorithm/Experimental/composer.json b/src/EncryptionAlgorithm/Experimental/composer.json index dbac87327..d74e29ab6 100644 --- a/src/EncryptionAlgorithm/Experimental/composer.json +++ b/src/EncryptionAlgorithm/Experimental/composer.json @@ -40,6 +40,6 @@ "require": { "php": ">=8.1", "ext-openssl": "*", - "web-token/jwt-encryption-algorithm-rsa": "^3.0" + "web-token/jwt-encryption-algorithm-rsa": "^3.2" } } diff --git a/src/EncryptionAlgorithm/KeyEncryption/AESGCMKW/composer.json b/src/EncryptionAlgorithm/KeyEncryption/AESGCMKW/composer.json index 136d854e7..4c65d9534 100644 --- a/src/EncryptionAlgorithm/KeyEncryption/AESGCMKW/composer.json +++ b/src/EncryptionAlgorithm/KeyEncryption/AESGCMKW/composer.json @@ -41,6 +41,6 @@ "php": ">=8.1", "ext-openssl": "*", "spomky-labs/aes-key-wrap": "^7.0", - "web-token/jwt-encryption": "^3.0" + "web-token/jwt-encryption": "^3.2" } } diff --git a/src/EncryptionAlgorithm/KeyEncryption/AESKW/composer.json b/src/EncryptionAlgorithm/KeyEncryption/AESKW/composer.json index 7ddcf82c4..bdf1a4c0a 100644 --- a/src/EncryptionAlgorithm/KeyEncryption/AESKW/composer.json +++ b/src/EncryptionAlgorithm/KeyEncryption/AESKW/composer.json @@ -41,6 +41,6 @@ "php": ">=8.1", "ext-openssl": "*", "spomky-labs/aes-key-wrap": "^7.0", - "web-token/jwt-encryption": "^3.0" + "web-token/jwt-encryption": "^3.2" } } diff --git a/src/EncryptionAlgorithm/KeyEncryption/Direct/composer.json b/src/EncryptionAlgorithm/KeyEncryption/Direct/composer.json index b06e8cede..644f2fe49 100644 --- a/src/EncryptionAlgorithm/KeyEncryption/Direct/composer.json +++ b/src/EncryptionAlgorithm/KeyEncryption/Direct/composer.json @@ -39,6 +39,6 @@ }, "require": { "php": ">=8.1", - "web-token/jwt-encryption": "^3.0" + "web-token/jwt-encryption": "^3.2" } } diff --git a/src/EncryptionAlgorithm/KeyEncryption/ECDHES/composer.json b/src/EncryptionAlgorithm/KeyEncryption/ECDHES/composer.json index 9e3126e89..127f460b0 100644 --- a/src/EncryptionAlgorithm/KeyEncryption/ECDHES/composer.json +++ b/src/EncryptionAlgorithm/KeyEncryption/ECDHES/composer.json @@ -44,7 +44,7 @@ "php": ">=8.1", "ext-openssl": "*", "spomky-labs/aes-key-wrap": "^7.0", - "web-token/jwt-encryption": "^3.0", - "web-token/jwt-util-ecc": "^3.0" + "web-token/jwt-encryption": "^3.2", + "web-token/jwt-util-ecc": "^3.2" } } diff --git a/src/EncryptionAlgorithm/KeyEncryption/PBES2/composer.json b/src/EncryptionAlgorithm/KeyEncryption/PBES2/composer.json index 5cdb717ad..eb722c215 100644 --- a/src/EncryptionAlgorithm/KeyEncryption/PBES2/composer.json +++ b/src/EncryptionAlgorithm/KeyEncryption/PBES2/composer.json @@ -39,6 +39,6 @@ }, "require": { "php": ">=8.1", - "web-token/jwt-encryption": "^3.0" + "web-token/jwt-encryption": "^3.2" } } diff --git a/src/EncryptionAlgorithm/KeyEncryption/RSA/composer.json b/src/EncryptionAlgorithm/KeyEncryption/RSA/composer.json index d070e4a54..3c5b78bf0 100644 --- a/src/EncryptionAlgorithm/KeyEncryption/RSA/composer.json +++ b/src/EncryptionAlgorithm/KeyEncryption/RSA/composer.json @@ -42,7 +42,7 @@ "brick/math": "^0.9|^0.10|^0.11", "ext-openssl": "*", "symfony/polyfill-mbstring": "^1.12", - "web-token/jwt-encryption": "^3.0" + "web-token/jwt-encryption": "^3.2" }, "suggest": { "ext-gmp": "GMP or BCMath is highly recommended to improve the library performance", diff --git a/src/SignatureAlgorithm/ECDSA/composer.json b/src/SignatureAlgorithm/ECDSA/composer.json index 310a913be..9b629f444 100644 --- a/src/SignatureAlgorithm/ECDSA/composer.json +++ b/src/SignatureAlgorithm/ECDSA/composer.json @@ -40,6 +40,6 @@ "require": { "php": ">=8.1", "ext-openssl": "*", - "web-token/jwt-signature": "^3.0" + "web-token/jwt-signature": "^3.2" } } diff --git a/src/SignatureAlgorithm/EdDSA/composer.json b/src/SignatureAlgorithm/EdDSA/composer.json index 18c940399..a5595bc58 100644 --- a/src/SignatureAlgorithm/EdDSA/composer.json +++ b/src/SignatureAlgorithm/EdDSA/composer.json @@ -40,6 +40,6 @@ "require": { "php": ">=8.1", "ext-sodium": "*", - "web-token/jwt-signature": "^3.0" + "web-token/jwt-signature": "^3.2" } } diff --git a/src/SignatureAlgorithm/Experimental/composer.json b/src/SignatureAlgorithm/Experimental/composer.json index bae011072..e60d7f76a 100644 --- a/src/SignatureAlgorithm/Experimental/composer.json +++ b/src/SignatureAlgorithm/Experimental/composer.json @@ -39,7 +39,7 @@ }, "require": { "php": ">=8.1", - "web-token/jwt-signature-algorithm-rsa": "^3.0", - "web-token/jwt-signature-algorithm-hmac": "^3.0" + "web-token/jwt-signature-algorithm-rsa": "^3.2", + "web-token/jwt-signature-algorithm-hmac": "^3.2" } } diff --git a/src/SignatureAlgorithm/HMAC/composer.json b/src/SignatureAlgorithm/HMAC/composer.json index 04f6920f4..8418443eb 100644 --- a/src/SignatureAlgorithm/HMAC/composer.json +++ b/src/SignatureAlgorithm/HMAC/composer.json @@ -39,6 +39,6 @@ }, "require": { "php": ">=8.1", - "web-token/jwt-signature": "^3.0" + "web-token/jwt-signature": "^3.2" } } diff --git a/src/SignatureAlgorithm/None/composer.json b/src/SignatureAlgorithm/None/composer.json index 6ca8be325..31cc9777e 100644 --- a/src/SignatureAlgorithm/None/composer.json +++ b/src/SignatureAlgorithm/None/composer.json @@ -39,6 +39,6 @@ }, "require": { "php": ">=8.1", - "web-token/jwt-signature": "^3.0" + "web-token/jwt-signature": "^3.2" } } diff --git a/src/SignatureAlgorithm/RSA/composer.json b/src/SignatureAlgorithm/RSA/composer.json index 9a4aef839..2a8f3afc9 100644 --- a/src/SignatureAlgorithm/RSA/composer.json +++ b/src/SignatureAlgorithm/RSA/composer.json @@ -41,7 +41,7 @@ "php": ">=8.1", "brick/math": "^0.9|^0.10|^0.11", "ext-openssl": "*", - "web-token/jwt-signature": "^3.0" + "web-token/jwt-signature": "^3.2" }, "suggest": { "ext-gmp": "GMP or BCMath is highly recommended to improve the library performance",