Commit 9ec254d
committed
Drop the
This removes `time` from the dependency tree because the crate shipped
a security fix behind an MSRV bump.
Fixes #92.
We make a best effort attempt to keep the same behavior as when we
validated JWTs using `jsonwebtoken`. This includes rejecting any JWTs
that have the `aud` field set. We also keep `jsonwebtoken` as a
dev-dependency and add parity tests.
Unlike `jsonwebtoken`, we now fail to decode JWTs that
contain `exp` fields with fractional parts.jsonwebtoken dependency1 parent 674acca commit 9ec254d
5 files changed
Lines changed: 309 additions & 119 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
| 17 | + | |
19 | 18 | | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
0 commit comments