library php-jwt-middleware
PSR-7 compliant middleware to handle incoming JWT's
mvdstam/php-jwt-middleware
PSR-7 compliant middleware to handle incoming JWT's
- Monday, September 4, 2017
- by Maximized
- Repository
- 1 Watchers
- 1 Stars
- 17 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
PHP JWT Middleware
This package allows developers to add simple but powerful middleware to their application which does one thing, and one thing only: validate incoming JWT's., (*1)
Requirements
Goal of this package
This package aims to provide the developer with a PSR-7 compliant HTTP middleware class that ensures the validity and integrity of incoming JWT's. When a JWT is found valid, it is simply added to the request as an attribute. Within the application, the JWT can simply be accessed using the current ServerRequestInterface implementation for your application:, (*2)
class MyController
{
public function indexAction(ServerRequestInterface $request)
{
$jwt = $request->getAttribute('jwt'); // Instance of Lcobucci\JWT\Token
}
}
dev-master
9999999-dev
PSR-7 compliant middleware to handle incoming JWT's
Sources
Download
MIT
The Requires
The Development Requires
by
Max van der Stam
1.1.0
1.1.0.0
PSR-7 compliant middleware to handle incoming JWT's
Sources
Download
MIT
The Requires
The Development Requires
by
Max van der Stam
1.0.0
1.0.0.0
PSR-7 compliant middleware to handle incoming JWT's
Sources
Download
MIT
The Requires
The Development Requires
by
Max van der Stam