Skip to content

Commit

Permalink
Web-Token Framework simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Feb 22, 2024
1 parent f457c3d commit 9c3c0f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/web-token-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,8 @@ jobs:

- name: "Require web-token/*"
run: |
composer require --dev --no-update web-token/jwt-bundle:"^3.0.6"
composer require --dev --no-update web-token/jwt-checker:"^3.0.6"
composer require --dev --no-update web-token/jwt-key-mgmt:"^3.0.6"
composer require --dev --no-update web-token/jwt-signature-algorithm-hmac:"^3.0.6"
composer require --dev --no-update web-token/jwt-encryption-algorithm-aesgcm:"^3.0.6"
composer require --dev --no-update web-token/jwt-encryption-algorithm-aesgcmkw:"^3.0.6"
composer require --dev --no-update web-token/jwt-bundle:"^3.3"
composer require --dev --no-update spomky-labs/aes-key-wrap:"^7.0"
- name: "Install dependencies"
run: "composer update ${{ matrix.composer-flags }} --prefer-dist --prefer-stable"
Expand Down
25 changes: 1 addition & 24 deletions Resources/doc/10-web-token.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,7 @@ To enable this feature, you must install the following dependencies:

.. code-block:: sh
composer require --no-update web-token/jwt-bundle web-token/jwt-checker web-token/jwt-key-mgmt
# Please choose one of the following packages. They add algorithms depending on your needs
# More details in the next section
composer require --no-update web-token/jwt-signature-algorithm-ecdsa:"^3.1.2"
composer require --no-update web-token/jwt-signature-algorithm-hmac:"^3.1.2"
composer require --no-update web-token/jwt-signature-algorithm-rsa:"^3.1.2"
composer require --no-update web-token/jwt-signature-algorithm-eddsa:"^3.1.2"
# If you want to encrypt the tokens, please pick at least
# * one key encryption algorithm package
# * one content encryption algorithm package
#
# // KEY ENCRYPTION ALGORITHM \\
composer require --no-update web-token/jwt-encryption-algorithm-rsa:"^3.1.2"
composer require --no-update web-token/jwt-encryption-algorithm-pbes2:"^3.1.2"
composer require --no-update web-token/jwt-encryption-algorithm-ecdh-es:"^3.1.2"
composer require --no-update web-token/jwt-encryption-algorithm-dir:"^3.1.2"
composer require --no-update web-token/jwt-encryption-algorithm-aeskw:"^3.1.2"
composer require --no-update web-token/jwt-encryption-algorithm-aesgcmkw:"^3.1.2"
# // CONTENT ENCRYPTION ALGORITHM \\
composer require --no-update web-token/jwt-encryption-algorithm-aesgcm:"^3.1.2"
composer require --no-update web-token/jwt-encryption-algorithm-aescbc:"^3.1.2"
composer require --no-update web-token/jwt-bundle
## About Algorithms

Expand Down

0 comments on commit 9c3c0f0

Please sign in to comment.