Commit graph

323 commits

Author SHA1 Message Date
Filip Skokan
eae01b57ab fix: actually remove the base64url proper encoding check
This should've landed with 470b4c7
2020-02-03 14:07:28 +01:00
Filip Skokan
dec5d233e1 refactor: simplify lib/jwa/ecdsa.js 2020-01-30 16:16:42 +01:00
Filip Skokan
10f8336c45 chore(release): 1.22.0 2020-01-29 21:15:28 +01:00
Filip Skokan
2fb1d8ed85 style: remove unused requires 2020-01-29 20:38:03 +01:00
Filip Skokan
470b4c7315 perf: base64url decode, JWT.verify, JWK.Key instance re-use
I'm done trying to educate other JOSE producers about interoperability
so i'm going to be accepting their non-conform base64url so that users
of this module don't suffer performance loss.
2020-01-29 20:33:30 +01:00
Filip Skokan
955171701f docs: update README.md 2020-01-29 16:45:54 +01:00
Filip Skokan
d8c50ade6d chore: package.json tags 2020-01-28 18:20:34 +01:00
Filip Skokan
93068a63c8 refactor: improve performance when decoding base64url values
When creating a Buffer from a string, this encoding will also correctly
accept "URL and Filename Safe Alphabet".
2020-01-28 16:41:03 +01:00
Filip Skokan
ed1f78023e refactor: cleanup, code diet 2020-01-27 10:34:21 +01:00
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