JSON Web Token authentication for Laravel and Lumen
open sourceMITfree
jwt-auth (tymon/jwt-auth) adds JSON Web Token authentication to Laravel and Lumen. It issues and checks tokens as a Laravel auth guard, signed with a shared secret or a key pair, with configurable time to live and refresh time to live, required and persistent claims, a leeway for clock skew, and a blacklist that invalidates tokens with a grace period.
Problems it solves
- authenticate users of my Laravel API with JSON Web Tokens instead of sessions
- refresh and revoke API tokens in a Laravel app
- sign Laravel API tokens with an RSA key pair
Features
- Laravel auth guard that issues and checks JSON Web Tokens
- signing with a shared secret or a public and private key pair
- configurable token time to live and refresh time to live
- required and persistent claims, and a lock on the token subject
- token blacklist with a grace period
- leeway for clock skew
Alternatives
The same job
These do what jwt-auth does.
- lcobucci/jwt Framework-agnostic PHP library to issue, parse and validate JSON Web Tokens
- PHP-JWT Encode and decode JSON Web Tokens in PHP
