2017 © Pedro Peláez
 

library jwt-auth-multiple-keys

Add multiple keychain support to tymon/jwt-auth package

image

fidelize/jwt-auth-multiple-keys

Add multiple keychain support to tymon/jwt-auth package

  • Tuesday, February 27, 2018
  • by alanwillms
  • Repository
  • 4 Watchers
  • 0 Stars
  • 375 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 70 % Grown

The README.md

JWT Auth with Multiple Keys

This is an extension of tymon/jwt-auth, adding support to:, (*1)

  • Replace deprecated namshi/jose with lcobucci/jwt
  • JWT with key pairs instead of a secret
  • Validate a JWT against multiple public keys
  • Use JWT secret as a fallback

Installing

Firstly, you must install tymon/jwt-auth., (*2)

Add this package through Composer: composer require "fidelize/jwt-auth-multiple-keys", (*3)

Edit your config/jwt.php file adding/editing these lines:, (*4)

<?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

Warning

Keys must follow the pattern name key.*.key and key.*.key.pub, (*5)

TODO List

  • [ ] Support different name patterns
  • [ ] Add command to generate keys

The Versions

27/02 2018

dev-master

9999999-dev https://github.com/fidelize/jwt-auth-multiple-keys

Add multiple keychain support to tymon/jwt-auth package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alan Michel Willms Quinot

laravel authentication auth jwt json web token

27/02 2018

1.1.0

1.1.0.0 https://github.com/fidelize/jwt-auth-multiple-keys

Add multiple keychain support to tymon/jwt-auth package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alan Michel Willms Quinot

laravel authentication auth jwt json web token

15/11 2017

1.0.2

1.0.2.0 https://github.com/fidelize/jwt-auth-multiple-keys

Add multiple keychain support to tymon/jwt-auth package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alan Michel Willms Quinot

laravel authentication auth jwt json web token

15/11 2017

1.0.1

1.0.1.0 https://github.com/fidelize/jwt-auth-multiple-keys

Add multiple keychain support to tymon/jwt-auth package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alan Michel Willms Quinot

laravel authentication auth jwt json web token

15/11 2017

1.0.0

1.0.0.0 https://github.com/fidelize/jwt-auth-multiple-keys

Add multiple keychain support to tymon/jwt-auth package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alan Michel Willms Quinot

laravel authentication auth jwt json web token