Closed
Description
Hi, it seems to me that the new ValidAt
constraint is very dangerous:
jwt/test/unit/Validation/Constraint/ValidAtTest.php
Lines 218 to 225 in 6d8665c
It creates a false sense of security, and it's easy to mess with: I've already had a successful token misused because no time claim was set.
I propose to rename ValidAt
to LooseValidAt
, and introduce a new StrictValidAt
that requires all time claims to be set