Skip to content

Releases: JimTools/jwt-auth

2.2.0

15 Dec 12:03
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @Kiina made their first contribution in #12

Full Changelog: 2.1.0...2.2.0

1.1.0

15 Dec 11:02
aa6b80d
Compare
Choose a tag to compare

What's Changed

  • fix PHP 8.4 deprecation error (implicitly nullable parameter) by @mbolli in #10

Full Changelog: 1.0.2...1.1.0

2.1.0

07 Nov 21:28
0b4c974
Compare
Choose a tag to compare
  • Adding support for PHP 8.4
  • Update pip dependencies for creating docs

Full Changelog: 2.0.0...2.1.0

2.0.0

27 Sep 20:28
9121a45
Compare
Choose a tag to compare

This is a major release with a total rework, improving type safety, decoupling concerns and using modern language features. Please see UPGRADING.md for full details, please note Rector can be used to automate the majority of the upgrade process.

Full Changelog: 1.0.1...2.0.0

1.0.2

14 Sep 22:13
d11ebf4
Compare
Choose a tag to compare

What's Changed

  • Adding a command for removal of tuupola/slim-jwt-auth by @N-M in #5
  • config array description should allow logger key by @mbolli in #6

New Contributors

  • @N-M made their first contribution in #5
  • @mbolli made their first contribution in #6

Full Changelog: 1.0.1...1.0.2

v1.0.1

24 Mar 11:31
45b9fa4
Compare
Choose a tag to compare

Marking this package as a replacement for tuupola/slim-jwt-auth

Initial Fork

19 Feb 15:36
Compare
Choose a tag to compare

Forked from tuupola/slim-jwt-auth resolves security* issue but also has breaking changes

Upgrade

  1. Switch over the package by using the following commands, for now the
    namespace is exactly the same.
composer remove tuupola/slim-jwt-auth
composer require jimtools/jwt-auth
  1. Update the JwtAuthentication config to have keys for the secret and
    algorithm to have a unique index.

Before

$app->add(new Tuupola\Middleware\JwtAuthentication([
    "secret" => "supersecretkeyyoushouldnotcommittogithub",
    "algorithm" => ["HS256"]
]));

After

$app->add(new Tuupola\Middleware\JwtAuthentication([
    "secret" => ["acme" => "supersecretkeyyoushouldnotcommittogithub"],
    "algorithm" => ["acme" => "HS256"],
]));
  1. (Maybe) If you are using multiple encryption algorithms you will need to add the kid
    to the JWT header.
    firebase JWT Docs