Releases: JimTools/jwt-auth
Releases · JimTools/jwt-auth
3.0.0
What's Changed
- chore(deps): bump setuptools from 75.3.0 to 78.1.1 in /docs by @dependabot[bot] in #24
- Upgrading firebase/php-jwt by @JimTools in #23
Breaking Changes
- Key lengths are now validated by
firebase/php-jwtif a key length is less than the specified algorithm, an exception will be thrown.
Full Changelog: 2.3.1...3.0.0
2.3.1
2.3.0
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
JwtAuthenticationconfig to have keys for thesecretand
algorithmto 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