robdwaller / psr-jwt Goto Github PK
View Code? Open in Web Editor NEWA PSR-7 and PSR-15 compliant JSON Web Token Middleware Library.
License: MIT License
A PSR-7 and PSR-15 compliant JSON Web Token Middleware Library.
License: MIT License
On readme
$parser = $factory->parse('token', 'secret');
should be with an r on the method "parser"
$factory->parser('token', 'secret');
or at least that's what made it work for me.
Currently, in src/Validation/Validate.php at method "notBefore" the comparison done between $notBefore
and time()
is <
. If $notBefore
and time()
are identical (and time()
is only precise to the second), then authorization will fail even though the token isn't being used before the not before time. I'm open to correction, but I get the impression that using <=
instead would be appropriate, since there are cases where developers would generate a token (with not before time and issued at time set to the same value) and then quickly use it.
Readme still mention parser's validate().
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.