Commit graph

314 commits

Author SHA1 Message Date
Filip Skokan
21e0ea5357 docs: update secp256k1 draft version link 2020-01-27 09:00:39 +01:00
Filip Skokan
a9f6f71350 feat: keystore filtering by JWK Key thumbprint 2020-01-26 19:31:55 +01:00
Filip Skokan
9df7d9d2b4 chore(release): 1.21.1 2020-01-25 16:45:34 +01:00
Filip Skokan
70ff22227a fix: contactKDF iteration count fixed for key sizes larger than 256 bits 2020-01-25 16:43:53 +01:00
Filip Skokan
e3ad39fea0 test: add test for rfc7518#appendix-C 2020-01-25 10:15:35 +01:00
Filip Skokan
33308234d2
docs: update README.md 2020-01-24 08:25:02 +01:00
Filip Skokan
b99fd942e6 chore(release): 1.21.0 2020-01-23 18:50:44 +01:00
Filip Skokan
3a6d17fdd1 feat: add opt-in support for Unsecured JWS algorithm "none" 2020-01-23 18:38:00 +01:00
Filip Skokan
0f8bf886da fix(typescript): don't expose non existant classes, fix decode key 2020-01-23 17:05:36 +01:00
Filip Skokan
2a7780cf49 chore(release): 1.20.0 2020-01-16 08:49:51 +01:00
Filip Skokan
a0c0c7ad70
feat: add JWTExpired error and JWTClaimInvalid claim and reason props
Resolves #62
2020-01-16 08:49:37 +01:00
Filip Skokan
79aaf2b104 chore(release): 1.19.0 2020-01-13 17:09:22 +01:00
Filip Skokan
b1864e319d feat: exposed shorthands for JWT verification profiles 2020-01-12 16:40:51 +01:00
Filip Skokan
93cb7f0268 chore: update tags 2020-01-09 15:43:41 +01:00
Filip Skokan
f9374b29ad chore(release): 1.18.2 2020-01-08 13:24:20 +01:00
Filip Skokan
13b1106048 fix: ensure asn1.js version to remove Buffer deprecation notice 2020-01-08 13:17:46 +01:00
Filip Skokan
bc81e5dec2 fix: expose JOSENotSupported key import errors on unsupported runtimes 2020-01-08 13:17:45 +01:00
Filip Skokan
bb58c9ce52 fix: typo in JOSENotSupported error when x509 certs are not supported 2020-01-07 21:03:00 +01:00
Filip Skokan
5ade37c1db chore: update deps 2020-01-07 14:57:03 +01:00
Filip Skokan
3035b8a4f1 docs: fix flattened encrypt docs 2020-01-04 23:19:20 +01:00
Filip Skokan
927118cc47 chore: cleanup 2020-01-01 21:31:20 +01:00
Filip Skokan
6e9f912684 chore(release): 1.18.1 2020-01-01 21:25:11 +01:00
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
d55df86e51 chore(release): 1.18.0 2019-12-31 14:25:37 +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
1f02124857 chore: update c8 2019-12-22 20:43:06 +01:00
Filip Skokan
dc7d87f03d chore(release): 1.17.2 2019-12-17 20:43:35 +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
11ceb4ef5d chore: add deprecation warning for P-256K 2019-12-17 17:23:00 +01:00
Filip Skokan
5128d3f7f6 docs: update docs/README.md and README.md 2019-12-17 17:22:59 +01:00
Filip Skokan
10457355e3 refactor: revert the slow Object.freeze 2019-12-11 09:15:13 +01:00
Filip Skokan
4cd31bdbc4 chore(release): 1.17.1 2019-12-10 17:06:47 +01:00
Filip Skokan
bee574457f fix: properly fail to import unsupported openssh keys 2019-12-10 17:06:34 +01:00
Filip Skokan
94ec607d4c refactor: freeze the key's x5c array 2019-12-10 15:20:01 +01:00
Filip Skokan
0e28282e3e chore(release): 1.17.0 2019-12-10 15:03:19 +01:00
Filip Skokan
25a7a71915 feat: importing a certificate populates x5c and x5t thumbprints
closes #59
2019-12-10 14:58:54 +01:00
Filip Skokan
40cc05241e docs: add JWK.asKey DER public key type values 2019-12-10 14:01:12 +01:00
Filip Skokan
62bdee7b29 refactor: improve error message when JWE "enc" value is invalid 2019-12-06 16:09:49 +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
cfe3dbab28 chore(release): 1.16.2 2019-12-05 21:00:11 +01:00
Filip Skokan
daabedc776 fix: handle Unencoded Payload (b64:false) with arbitrary buffer payloads
fixes #57
2019-12-05 20:54:43 +01:00
Filip Skokan
749b2ac9d3 chore(release): 1.16.1 2019-12-05 10:34:49 +01:00
Filip Skokan
f0d719416e fix: allow PBES2 for the correct JWK use values 2019-12-05 10:33:59 +01:00
Filip Skokan
2bd3d3c9ba docs: fix X449 -> X448 2019-12-04 18:15:40 +01:00
Filip Skokan
f8621ae23b chore(release): 1.16.0 2019-12-04 15:46:17 +01:00
Filip Skokan
5b27c97ac8 feat: two official jose plugins/extensions for those living on the edge
https://github.com/panva/jose-chacha
https://github.com/panva/jose-x25519-ecdh

See the docs of each if you need them.

Closes #56
2019-12-04 15:45:49 +01:00
Filip Skokan
af635be8ac refactor: allow ECDH-ES to be pluggable with extensions 2019-12-04 11:46:09 +01:00
Filip Skokan
b103874208 refactor: improve extra KW header parameter handling 2019-12-03 19:06:00 +01:00
Filip Skokan
a9f1d4b195 refactor: introduce various registries to prepare for extension modules 2019-12-03 18:54:37 +01:00
Filip Skokan
d5af0c364d refactor: set authTagLength option for Content Encryption with AES GCM
Node uses 16 by default, this is just making it explicit.
2019-12-01 19:01:47 +01:00