Add multiple keychain support to tymon/jwt-auth package
fidelize/jwt-auth-multiple-keys is a Laravel package for add multiple keychain support to tymon/jwt-auth package.
It currently has 0 GitHub stars and 16.079 downloads on Packagist (latest version 4.2.0).
Install it with composer require fidelize/jwt-auth-multiple-keys.
Discover more Laravel packages by fidelize
or browse all Laravel packages to compare alternatives.
Last updated
This is an extension of tymon/jwt-auth, adding support to:
namshi/jose with lcobucci/jwtFirstly, you must install tymon/jwt-auth.
Add this package through Composer: composer require "fidelize/jwt-auth-multiple-keys"
Edit your config/jwt.php file adding/editing these lines:
<?php
return [
// ...
'providers' => [
// ...
'jwt' => 'Fidelize\JWTAuth\JwtAdapter',
'auth' => 'Fidelize\JWTAuth\AuthAdapter',
// ...
],
'keys_directory' => '/path/yo/your/keys/directory/'
];
?>
# Don't add a passphrase!
ssh-keygen -t rsa -b 4096 -f keys/jwt.app.key
openssl rsa -in keys/jwt.wholesaler.key -pubout -outform PEM -out keys/jwt.app.key.pub
Keys must follow the pattern name key.*.key and key.*.key.pub