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
Filip Skokan
df56b942c6
feat: add verbose key type error messages
2021-07-01 14:48:53 +02:00
Filip Skokan
65fdec22be
style: prettier lint
2021-07-01 09:54:21 +02:00
Filip Skokan
4103719c24
fix: guard SignJWT.prototype.sign() from missing protected header
...
fixes #221
2021-07-01 09:50:48 +02:00
Filip Skokan
afae428f39
feat(webcrypto): allow generate* modules extractable: false override
2021-05-12 14:07:26 +02:00
Filip Skokan
b84d6a307d
style: prettier lint
2021-05-12 13:27:02 +02:00
Filip Skokan
da5c5d78ac
refactor: unified "unsupported" error messages
2021-05-05 15:26:28 +02:00
Filip Skokan
7819df73eb
fix: isObject helper in different vm contexts or jest re-assigned globals
...
closes #178
2021-04-13 22:01:58 +02:00
Filip Skokan
147759220b
test: add a JWK export/import roundtrip test
...
refs #178
2021-04-13 18:11:34 +02:00
Filip Skokan
f724323074
test: conditional everything three way
2021-04-01 14:34:02 +02:00
Filip Skokan
54343596b3
test: add X25519 and X448 ECDH test vectors
2021-04-01 14:24:11 +02:00
Filip Skokan
e0adf49e57
fix: swallow invalid signature encoding errors
2021-03-11 14:56:57 +01:00
Filip Skokan
5110a6b7c6
lint: prettier tests
2021-03-09 10:06:21 +01:00
Filip Skokan
8fffd3e2e1
feat: electron >=12.0.0 is now supported (and tested on ci)
2021-03-03 00:19:04 +01:00
Filip Skokan
fc584b2efd
fix: node runtime json fetch handles connection errors properly
2021-02-10 13:36:29 +01:00
Filip Skokan
c037e5907c
style: lint cookbooks
2021-02-05 12:43:42 +01:00
Filip Skokan
e8d41a9335
feat: allow CryptoKey instances in a regular non-webcrypto node runtime
2021-02-04 17:39:28 +01:00
Filip Skokan
69a7edea0a
refactor: explicit new uint8array arg
2021-01-28 16:16:12 +01:00
Filip Skokan
ad88ee2cd5
perf: use KeyObject.prototype asymmetricKeyDetails when available
2021-01-18 13:50:42 +01:00
Filip Skokan
16dea9ec7d
feat: added JWE General JSON Serialization decryption
2020-12-17 12:18:13 +01:00
Filip Skokan
47d7001c02
test: deflake different payload produce test
2020-12-16 19:10:50 +01:00
Filip Skokan
6fb862cf12
feat: added JWS General JSON Serialization signing
...
resolves #129
2020-12-16 18:43:35 +01:00
Filip Skokan
fa29d68cfd
feat: added utility function for decoding token's protected header
2020-12-16 18:29:30 +01:00
Filip Skokan
55b77810d0
feat: added JWS General JSON Serialization verification
...
resolves #129
2020-12-16 18:29:05 +01:00
Filip Skokan
5163116ca1
feat: support recognizing proprietary crit header parameters
...
closes #123
2020-12-06 17:54:38 +01:00