Skip to content

Commit

Permalink
bug #574 fix clockSkew not taken into account in some case (mu4ddi3)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x-dev branch.

Discussion
----------

fix clockSkew not taken into account in some case

Commits
-------

4571d0c fix clockSkew not taken into account in some case
  • Loading branch information
chalasr committed Nov 1, 2018
2 parents 93dab0b + 4571d0c commit f338da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/JWSProvider/LcobucciJWSProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private function sign(Builder $jws)

private function verify(Token $jwt)
{
if (!$jwt->validate(new ValidationData())) {
if (!$jwt->validate(new ValidationData(time() + $this->clockSkew))) {
return false;
}

Expand Down

0 comments on commit f338da8

Please sign in to comment.