Releases: JimTools/jwt-auth
Releases · JimTools/jwt-auth
2.2.0
1.1.0
2.1.0
- Adding support for PHP 8.4
- Update pip dependencies for creating docs
Full Changelog: 2.0.0...2.1.0
2.0.0
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
v1.0.1
Initial Fork
Forked from tuupola/slim-jwt-auth
resolves security* issue but also has breaking changes
Upgrade
- 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
- Update the
JwtAuthentication
config to have keys for thesecret
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"],
]));
- (Maybe) If you are using multiple encryption algorithms you will need to add the
kid
to the JWT header.
firebase JWT Docs