handpicked · curated
itsdangerous: add SignatureNotYetValid
https://github.com/pallets/itsdangerous @ 672971d66a2ef9f85151e53283113f33d642dabd
public
Language
python
License
BSD-3-Clause
Version
1.0.0
Issue
When `max_age` is supplied and a signature timestamp is in the future, `TimestampSigner.unsign` currently raises `SignatureExpired`. Add a distinct `SignatureNotYetValid` exception in `itsdangerous.exc` that subclasses `BadTimeSignature` and carries `payload` and `date_signed`, raise it for future timestamps, and export it from the top-level `itsdangerous` package. Past timestamps must still raise `SignatureExpired`. The `TimedSerializer.loads` path must raise the new exception as well.
test command (not shown to the agent)
python3 .orivoxx/run_pytest.pyValidation gates
pollingWaiting for the validation worker. This page polls every 3 seconds.
Six gates
- cloned
- pass
- installs
- pass
- testFailsAtBase
- pass
- deterministic
- pass
- timeBounded
- pass
- licenseOk
- pass