Filip Skokan
828ad5a33d
fix: force iat past check when maxTokenAge option is used + JWT refactor
2020-01-01 21:23:05 +01:00
Filip Skokan
7bb5c953a9
feat: add JWT validation profiles for Access Tokens and Logout Tokens
2019-12-31 14:20:52 +01:00
Filip Skokan
0ed5025de3
fix: skip validating iat is in the past when exp is present
...
validating that iat is in the past is common sense but actually nowhere
defined, in most applications tokens will contain `exp` and for those
it seems requiring a few second leeway just to satisfy `iat` seems
inappropriate
2019-12-17 20:40:23 +01:00
Filip Skokan
8976027c97
refactor: improve error message when key use mismatches the operation
2019-12-06 15:35:15 +01:00
Filip Skokan
ce77388254
fix: default JWT.sign kid option value is false for HMAC signatures
2019-11-27 22:04:15 +01:00
Filip Skokan
1db9fc9cd1
refactor: don't swallow invalid encoding errors
2019-09-25 22:18:47 +02:00
Filip Skokan
6c98b61597
feat: validate JWTs according to a JWT profile - ID Token
...
It is now possible to pass a profile to `JWT.verify` and have the JWT
validated according to it. This makes sure you pass all the right
options and that required claims are present, prohibited claims are
missing and that the right JWT typ is used.
More profiles will be added in the future.
2019-07-23 14:50:16 +02:00
Filip Skokan
98af967ef6
test: test jwt sign options over existing payload
2019-07-22 22:38:03 +02:00
Filip Skokan
36c9ce20c5
fix: honour the JWT.sign jti option
...
fixes #33
2019-07-14 19:30:04 +03:00
Filip Skokan
dba1abdaf3
feat: add JWT.sign/verify/decode
2019-02-27 22:38:30 +01:00
Filip Skokan
775ea638b6
chore: cleanup
2019-02-10 17:45:55 +01:00
Filip Skokan
faa45bc03b
refactor: remove generic errors
2019-01-20 19:37:27 +01:00
Filip Skokan
6862c78bed
refactor: JWT verify errors
2019-01-20 19:25:36 +01:00
Filip Skokan
7080840f62
feat: verify and decode complete options
2019-01-20 14:26:09 +01:00
Filip Skokan
033a025a34
feat: jwt.verify
2019-01-19 16:33:17 +01:00
Filip Skokan
94b29d1c44
feat: jwt first commit
2019-01-19 00:33:45 +01:00