Filip Skokan
ce521d567b
refactor: less for in, added type checks, error messages
2020-11-22 12:44:27 +01:00
Filip Skokan
e39c3dba75
feat: allow compact verify/decrypt tokens to be uint8array encoded
...
This means that when Nested JWT is used the decrypted plaintext can
be piped directly to verify.
2020-11-22 12:44:27 +01:00
Filip Skokan
6e1f089803
docs: update readme
2020-11-22 12:44:27 +01:00
Filip Skokan
7a8418eadd
feat: added "KeyLike to JWK" module
...
resolves #109
2020-11-22 12:44:27 +01:00
Filip Skokan
a6fa15e64d
test: add coverage
2020-11-22 12:35:38 +01:00
Filip Skokan
2276f5a572
ci: limit github actions concurrency on browserstack jobs
2020-11-15 19:55:40 +01:00
Filip Skokan
0b5fbc211a
ci: silent browserstack run
2020-11-15 19:30:24 +01:00
Filip Skokan
8406b809fe
Revert "ci: limit github actions concurrency on browserstack jobs"
...
This reverts commit d61f73c0ab .
2020-11-15 19:19:26 +01:00
Filip Skokan
8f240fba46
ci: limit karma concurrency
2020-11-15 17:20:54 +01:00
Filip Skokan
87b80a6c9c
test: deflake cbc hmac
2020-11-15 16:46:34 +01:00
Filip Skokan
a76fc75459
chore(release): 3.0.2
2020-11-15 15:50:46 +01:00
Filip Skokan
7b6364f26f
fix(build): publish esm submodules
...
closes #104
2020-11-15 15:49:15 +01:00
Filip Skokan
8bc4c67fd0
src: runtime declarations
2020-11-15 13:17:21 +01:00
Filip Skokan
78d424c886
lint: tests
2020-11-15 13:16:38 +01:00
Filip Skokan
d61f73c0ab
ci: limit github actions concurrency on browserstack jobs
2020-11-15 13:16:12 +01:00
Filip Skokan
4fd035f03e
test: deflake a cbc test
2020-11-15 12:47:54 +01:00
Filip Skokan
e6e789c8dd
style: lint .d.ts files
2020-11-15 12:40:47 +01:00
Filip Skokan
b02902ef88
chore(release): 3.0.1
2020-11-15 12:35:28 +01:00
Filip Skokan
d9cb5734d7
fix(typescript): fix compiling by adding .d.ts files for runtime modules
2020-11-15 12:33:42 +01:00
Filip Skokan
076eea11bb
chore(release): 3.0.0
2020-11-14 18:28:54 +01:00
Filip Skokan
357fe0b964
feat: Revised API, No dependencies, Browser Support, Promises
...
BREAKING CHANGE: Revised, Promise-based API
BREAKING CHANGE: No dependencies
BREAKING CHANGE: Browser support (using [Web Cryptography API](https://www.w3.org/TR/WebCryptoAPI/ ))
BREAKING CHANGE: Support for verification using a remote JWKS endpoint
BREAKING CHANGE: Experimental Node.js libuv thread pool based runtime (non-blocking 🎉 )
2020-11-14 18:26:46 +01:00
Filip Skokan
c803d1be74
chore(release): 2.0.3
2020-10-29 20:48:59 +01:00
Filip Skokan
921737fa83
style: upgrade standard
2020-10-29 20:43:19 +01:00
Filip Skokan
6c3b92f439
fix: allow stubbing of the JWT.decode function
2020-10-29 20:26:09 +01:00
Filip Skokan
9cb049bc81
ci: add node v15.x to the test matrix
2020-10-23 22:23:35 +02:00
Filip Skokan
b6916946ac
chore: remove sponsorship campaign
2020-09-23 18:33:30 +02:00
Filip Skokan
4e26b3ca70
chore: bump dev deps
2020-09-14 19:35:41 +02:00
Filip Skokan
4e743b0dd0
chore(release): 2.0.2
2020-09-14 14:09:39 +02:00
Filip Skokan
1956746df6
fix(esm): include esm files in the published package
2020-09-14 14:09:32 +02:00
Filip Skokan
d3f3dc60ca
chore: remove FUNDING.yml
2020-09-11 15:09:25 +02:00
Filip Skokan
cb19a1ca7a
chore(release): 2.0.1
2020-09-10 10:05:05 +02:00
Filip Skokan
30f1dc2c41
fix: allow plugins such as jose-chacha to work in newer node runtime
2020-09-10 10:01:24 +02:00
Filip Skokan
181a454f05
docs: update img
2020-09-09 21:16:20 +02:00
Filip Skokan
1876669a19
chore(release): 2.0.0
2020-09-08 14:12:52 +02:00
Filip Skokan
97d46fb7c9
refactor: change JWT.decode error message for encrypted JWTs
2020-09-08 14:12:04 +02:00
Filip Skokan
30e5c46ecf
feat: decrypt allowlists for both key management and content encryption
...
BREAKING CHANGE: the `JWE.decrypt` option `algorithms` was removed and
replaced with contentEncryptionAlgorithms (handles `enc` allowlist) and
keyManagementAlgorithms (handles `alg` allowlist)
2020-09-08 14:12:04 +02:00
Filip Skokan
87c1562537
docs: add dpop profiles link
2020-09-08 14:12:04 +02:00
Filip Skokan
98a9f45f0a
docs: update jwt profiles table
2020-09-08 14:12:04 +02:00
Filip Skokan
779626f6cc
chore: update standard-version types
2020-09-08 14:12:04 +02:00
Filip Skokan
fd69d7f509
refactor: move JWT profile specifics outside of generic JWT
...
BREAKING CHANGE: the `JWT.verify` profile option was removed, use e.g.
`JWT.IdToken.verify` instead.
BREAKING CHANGE: removed the `maxAuthAge` `JWT.verify` option, this
option is now only present at the specific JWT profile APIs where the
`auth_time` property applies.
BREAKING CHANGE: removed the `nonce` `JWT.verify` option, this
option is now only present at the specific JWT profile APIs where the
`nonce` property applies.
BREAKING CHANGE: the `acr`, `amr`, `nonce` and `azp` claim value types
will only be checked when verifying a specific JWT profile using its
dedicated API.
BREAKING CHANGE: using the draft implementing APIs will emit a one-time
warning per process using `process.emitWarning`
2020-09-08 14:12:04 +02:00
Filip Skokan
c4267cc655
refactor: removed nonce option from JWT.sign
...
BREAKING CHANGE: `JWT.sign` function options no longer accept a `nonce`
property. To create a JWT with a `nonce` just pass the value to the
payload.
2020-09-08 14:12:04 +02:00
Filip Skokan
655679715e
ci: remove macos from the ci matrix
2020-09-08 14:12:04 +02:00
Filip Skokan
19487dbe32
ci: add electron@10
2020-09-08 14:12:04 +02:00
Filip Skokan
1aa9035552
feat: added support for ESM (ECMAScript modules)
...
BREAKING CHANGE: due to added ESM module support Node.js version with
ESM implementation bugs are no longer supported, this only affects early
v13.x versions. The resulting Node.js semver range is
`>=10.13.0 < 13 || >=13.7.0`
2020-09-08 14:12:04 +02:00
Filip Skokan
6c35c519c9
refactor: removed deprecated methods and utilities
...
BREAKING CHANGE: deprecated method `JWK.importKey` was removed
BREAKING CHANGE: deprecated method `JWKS.KeyStore.fromJWKS` was removed
BREAKING CHANGE: the use of unregistered curve name P-256K for secp256k1
was removed
2020-09-08 14:12:04 +02:00
Filip Skokan
70bd4ae6b2
refactor: encrypt APIs unprotectedHeader and aad arguments swapped
...
BREAKING CHANGE: jose.JWE.Encrypt constructor aad and unprotectedHeader
arguments swapped places
BREAKING CHANGE: jose.JWE.encrypt.flattened header (unprotectedHeader)
and aad arguments swapped places
BREAKING CHANGE: jose.JWE.encrypt.general header (unprotectedHeader)
and aad arguments swapped places
2020-09-08 14:12:04 +02:00
Filip Skokan
ba5c897919
refactor: removed payload parsing from JWS.verify
...
BREAKING CHANGE: JWS.verify returned payloads are now always buffers
BREAKING CHANGE: JWS.verify options `encoding` and `parse` were removed
2020-09-08 14:12:04 +02:00
Filip Skokan
cadbd047ca
fix(typescript): allow Buffer when verifying detached signature
2020-09-08 14:12:04 +02:00
Filip Skokan
4c23bd65fe
fix(typescript): properly type all decode/verify/decrypt fn options
2020-09-08 14:12:04 +02:00
GitHubPang
d57e8c59e8
docs: fix grammar ( #95 )
2020-09-05 10:40:58 +02:00