Filip Skokan
ee401c9e0f
fix(typescript): b64: true is fine to use in JWT, its useless, but allowed ( #324 )
2021-11-18 08:05:10 +01:00
Filip Skokan
444cc3f239
refactor: rm src/runtime/node/secret_key.ts
2021-11-16 13:32:18 +01:00
Filip Skokan
188c1f7090
fix(electron): rsa-pss keys are never supported
2021-11-16 13:00:36 +01:00
Bob Thomas
9da0a7f49c
fix(typescript): b64 header regression ( #324 )
2021-11-12 19:53:43 +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
d927d4eec1
docs: remove stray *
2021-11-12 09:51:52 +01:00
Filip Skokan
0c1946c3e2
fix(typescript): apply updated compact and jwt headers to compact/jwt verify and decrypt results
2021-11-11 23:30:07 +01:00
Filip Skokan
8434e31452
refactor: update tests and internals of jwks
2021-11-11 22:56:47 +01:00
Filip Skokan
2a84afa1c3
refactor: src/runtime/interfaces.d.ts
2021-11-11 22:05:17 +01:00
Filip Skokan
79cbd82d3d
fix(typescript): Signed JWT Header Parameters has alg as required and b64 as never
2021-11-11 22:05:17 +01:00
Filip Skokan
c7fabd0f01
fix(typescript): Compact JWS Header Parameters has alg as required
2021-11-11 22:05:17 +01:00
Filip Skokan
0fa87af64b
fix(typescript): Compact JWS Header Parameters has alg and enc as required
2021-11-11 22:05:17 +01:00
Filip Skokan
aaba8f3000
fix: createRemoteJWKSet handles all JWS syntaxes
2021-11-11 22:05:17 +01:00
Filip Skokan
2e2b79d486
docs: mention signed JWT alg as required
2021-11-11 20:14:12 +01:00
Filip Skokan
f3a0cc9e73
refactor: src/jws/general/sign.ts
2021-11-11 17:06:00 +01:00
Filip Skokan
c6da6c2bc2
refactor: src/jwe/general/encrypt.ts
2021-11-11 16:58:27 +01:00
Filip Skokan
cfc93f5daf
feat: add GeneralSign signature and GeneralEncrypt recipient builder chaining
2021-11-11 16:16:01 +01:00
Filip Skokan
808877ae88
refactor: src/runtime/node/hmac_digest.ts
2021-11-11 14:29:25 +01:00
Filip Skokan
3925ebc561
docs: update readmes and examples
2021-11-10 15:19:37 +01:00
Filip Skokan
53e84fa385
refactor(web): use is_key_like types
2021-11-09 18:13:00 +01:00
Filip Skokan
401cabf974
fix(node): dont mention CryptoKey in versions without webcrypto
2021-11-09 18:12:25 +01:00
Filip Skokan
e9981a6ab7
refactor(node): less unnecessary async
2021-11-09 16:03:39 +01:00
Filip Skokan
5f1320e08d
refactor: runtime and lib
2021-11-09 15:28:06 +01:00
Filip Skokan
34e8e9cb00
refactor: simplify refs in general produce code
2021-11-09 11:21:46 +01:00
Filip Skokan
be56574b19
docs: GeneralSign addSignature
2021-11-08 22:30:59 +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
c3731481c7
refactor(node): skip concat on counter mode de/encrypt
2021-11-03 14:45:41 +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
39520302d0
fix(edge-functions): don't use globalThis
2021-11-01 15:35:49 +01:00
Filip Skokan
92df7032fe
style: global prettierc
2021-10-27 17:47:13 +02:00
Filip Skokan
7ed731c567
fix(typescript): work around potentially missing global URL from DOM lib
...
This is a workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960
closes #295
2021-10-21 10:16:04 +02:00
Filip Skokan
e7658db400
refactor: less code
2021-10-17 19:42:41 +02:00
Filip Skokan
180d5abf31
refactor: remove duplicate code
2021-10-17 18:53:42 +02:00
Filip Skokan
5a4ea20fdc
refactor: src/lib/crypto_key.ts
2021-10-17 14:03:59 +02:00
Filip Skokan
e8299f246b
fix(web): check Uint8Array CEK lengths, refactor for better tree-shaking
2021-10-17 12:57:22 +02:00
Filip Skokan
89dc2aab99
fix(web): checking cryptokey applicability early
2021-10-15 14:49:34 +02:00
Shueh Chou Lu
2b8738e38a
fix(typescript): export ProduceJWT ( #285 )
2021-10-15 09:08:27 +02:00
Filip Skokan
cd850efac6
refactor(node): createRemoteJWKSet can now be easier mocked
...
closes #259
2021-10-14 23:19:29 +02:00
Filip Skokan
d68f104d58
fix(typescript): re-export all types from index.d.ts
2021-10-14 19:49:38 +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
3e137d2427
refactor(typescript)!: remove repeated type re-exports
2021-10-14 13:45:06 +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
cd1ccc6936
docs: reoder usage and import examples, update to import from "jose"
2021-10-14 13:44:59 +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
5afb713fbb
refactor: rename calculateThumprint to calculateJwkThumbprint
...
BREAKING CHANGE: The `jose/jwk/thumbprint` named export
is renamed to `calculateJwkThumbprint`, now
`import { calculateJwkThumbprint } from 'jose'`
2021-10-14 13:44:40 +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
ec1d0e72fe
refactor: removed the deprecated jwk/from_key_like module
...
BREAKING CHANGE: The deprecated `jose/jwk/from_key_like` module was
removed, use `import { exportJWK } from 'jose'` instead.
2021-10-14 13:44:26 +02:00
Filip Skokan
73ba3708d4
fix: remove clutter when tree shaking browser dist
2021-10-14 12:21:02 +02:00