Roland Zwaga
b4612f5d25
feat: optional headers options for createRemoteJWKSet ( #397 )
...
Co-authored-by: Filip Skokan <panva.ip@gmail.com>
2022-04-26 11:49:43 +02:00
ghdoergeloh
5017d95764
feat: add createRemoteJWKSet cacheMaxAge option
...
resolves #394
Co-authored-by: Filip Skokan <panva.ip@gmail.com>
2022-04-21 13:47:23 +02:00
Filip Skokan
c45faefd10
refactor: simplify PBES2 p2c encryption handling
2022-03-06 14:40:06 +01:00
Filip Skokan
6fc1d4388c
test,ci: refactor and add tests using node's experimental globals
2022-03-06 13:53:09 +01:00
Filip Skokan
633e204139
test: add empty jwe cbc plaintext tests
2022-03-04 22:26:30 +01:00
Filip Skokan
7036a09004
test: add empty jws payload tests
2022-03-04 22:15:55 +01:00
Bob Thomas
95fe59791d
fix: decrypting empty ciphertext compact JWEs ( #374 )
2022-03-04 22:14:28 +01:00
Filip Skokan
b36a4e627e
docs: use rfc-editor instead of datatracker for linking RFCs
2022-02-15 16:47:12 +01:00
Filip Skokan
3d2a2b8eee
feat: add jose.decodeJwt utility
2022-02-07 13:49:35 +01:00
Filip Skokan
bd7bf3789c
feat: add createLocalJWKSet, resolver to verify using a local JWKSet
2022-01-24 17:17:18 +01:00
Filip Skokan
80741cb32a
refactor: substr > slice
2021-12-13 10:29:41 +01:00
Filip Skokan
188c1f7090
fix(electron): rsa-pss keys are never supported
2021-11-16 13:00:36 +01:00
Filip Skokan
4db6e53cc2
test: remove useless regexp escape
2021-11-15 15:14:35 +01:00
Filip Skokan
0f8a9b5153
test: add all syntaxes to jwks tests
2021-11-12 11:18:56 +01:00
Filip Skokan
7c70e7b970
fix: Compact JWS verification handles a zero-length payload string
2021-11-12 11:18:42 +01:00
Filip Skokan
aaba8f3000
fix: createRemoteJWKSet handles all JWS syntaxes
2021-11-11 22:05:17 +01:00
Filip Skokan
cfc93f5daf
feat: add GeneralSign signature and GeneralEncrypt recipient builder chaining
2021-11-11 16:16:01 +01:00
Filip Skokan
4a5e89d4e1
test(node): refactor to run only cjs in node 12, else esm
2021-11-10 16:47:41 +01:00
Filip Skokan
50d45f79db
test: fix testECDSASigEncoding under @peculiar/webcrypto
2021-11-10 09:13:25 +01:00
Filip Skokan
6efe0b25c0
test: use 4096 bit size in generate rsa tests
2021-11-09 21:55:15 +01:00
Filip Skokan
dda1e2fdbd
test: split ecdh-es kw and dir
2021-11-09 15:40:05 +01:00
Filip Skokan
94eca81687
feat: General JWE Encryption
2021-11-08 22:30:58 +01:00
Filip Skokan
29e03ada92
refactor: update JWE Header disjoint error message
2021-11-08 21:38:49 +01:00
Filip Skokan
51a18b675a
fix: importX509 certificate values that do not include a version number
...
closes #308
2021-11-05 23:40:10 +01:00
Filip Skokan
57126f1806
fix: allow shorter HMAC secrets
...
With workarounds available its enforcement is just adding extra code
that annoys developers.
2021-11-01 17:52:04 +01:00
Filip Skokan
92df7032fe
style: global prettierc
2021-10-27 17:47:13 +02:00
Filip Skokan
4b296f08f5
test: fix conditional calls
2021-10-15 14:35:18 +02:00
Filip Skokan
dd2cf9ed2d
refactor: redo exports to support broader tooling
...
BREAKING CHANGE: All module named exports have moved from subpaths to
just "jose". For example, `import { jwtVerify } from 'jose/jwt/verify'`
is now just `import { jwtVerify } from 'jose'`.
BREAKING CHANGE: All submodule default exports and named have been
removed in favour of just "jose" named exports.
2021-10-14 14:08:05 +02:00
Filip Skokan
a51a9f6770
refactor: remove public API default exports in favour of named ones
2021-10-14 13:45:03 +02:00
Filip Skokan
914e47fc9b
refactor: remove util/random
...
BREAKING CHANGE: The undocumented `jose/util/random` was removed.
2021-10-14 13:44:53 +02:00
Filip Skokan
8d3cc3bb46
refactor: removed the deprecated jwk/parse module
...
BREAKING CHANGE: The deprecated `jose/jwk/parse` module was
removed, use `import { importJWK } from 'jose'` instead.
2021-10-14 13:44:33 +02:00
Filip Skokan
73ba3708d4
fix: remove clutter when tree shaking browser dist
2021-10-14 12:21:02 +02:00
Filip Skokan
efa1619517
fix: proper createRemoteJWKSet timeoutDuration handling
...
fixes #277
2021-10-06 16:09:34 +02:00
Filip Skokan
a13eb045d8
feat: improve key input type errors, remove dependency on @types/node
2021-10-06 11:57:48 +02:00
Filip Skokan
4128c16ca0
Revert "test: skip process crashing tests on electron@15"
...
This reverts commit 137c473700 .
2021-10-03 10:22:29 +02:00
Filip Skokan
ee03b7eefa
test: bump deno, update imports
2021-09-29 14:08:59 +02:00
Filip Skokan
49fb62cb96
feat: return resolved key when verify and decrypt resolve functions are used
2021-09-25 22:27:28 +02:00
Filip Skokan
137c473700
test: skip process crashing tests on electron@15
...
see https://github.com/electron/electron/issues/31064
2021-09-22 23:50:08 +02:00
Filip Skokan
a2af0f45fe
feat: add X.509/SPKI/PKCS8 key import and SPKI/PKCS8 export functions
2021-09-22 23:50:08 +02:00
Filip Skokan
99eeb5ca95
refactor: error messages
2021-09-10 10:41:47 +02:00
Filip Skokan
0967369402
feat(cloudflare workers): add support for EdDSA using Ed25519
2021-09-10 10:36:37 +02:00
Filip Skokan
244a9f8433
test: fix conditional def
2021-09-09 15:44:48 +02:00
Filip Skokan
10a18f28a0
fix: guard Sign payloads and Encrypt plaintext argument types
2021-09-08 10:06:24 +02:00
Filip Skokan
71a2bae874
style: prettier lint
2021-09-06 14:00:53 +02:00
Filip Skokan
0b112cf63e
feat(node): support rsa-pss keys in Node.js >= 16.9.0 for sign/verify
2021-09-06 11:14:01 +02:00
Filip Skokan
5c7d2656b6
feat: experimental Deno build & publish
2021-08-20 12:01:17 +02:00
Filip Skokan
59aa96d28d
fix(typescript): allow sign results to be passed to verify
2021-08-20 11:57:16 +02:00
Filip Skokan
1a4092f89b
chore: lint
2021-08-16 15:12:57 +02:00
Filip Skokan
991d4350d0
fix: throw JWEInvalid when jwe protected header is invalid
2021-08-16 12:38:04 +02:00
Andrey Trebler
1fc79aa831
fix: throw JWSInvalid when jws protected header is invalid ( #244 )
2021-08-16 12:34:44 +02:00