Provide libraries to help you deal with JSON Web Key Sets (JWKS) in Laravel 😉
Documentation: ShipSaaS Laravel JWKS
- Laravel 10+
- PHP 8+
- RSA algorithm only (for now)
Ever thought of microservices? One of the biggest challenges is having the Authentication (& Authorization) service.
However, you don't have to spend enormous time building a brand new AuthService and migrating the current users.
Your current app = the core, the heart of everything. Let's build satellite services around that.
With (Laravel) JWKS, we will have:
- The main app exposes the JWKs internally for the satellite microservices.
- The satellite services can simply obtain the JWKs and verify the signed JWT token before handling the actual requests.
JWKS is supported in multiple languages e.g.: Node.js, Go,...
Install the library:
composer require shipsaas/laravel-jwks
Export config
php artisan vendor:publish --tag=laravel-inbox-process
Visit: ShipSaaS Laravel JWKS
Best practices & notes are well documented too 😎!
Run composer test
😆
Available Tests:
- Unit Testing
- Feature Testing with REAL KEYs
- Seth Phat
Feel free to submit any PR, please follow PSR-1/PSR-12 coding conventions and testing is a must.
If this package is helpful, please give it a ⭐️⭐️⭐️. Thank you!
MIT License