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
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
Filip Skokan
67c1a5de77
docs: update decode docs to be less likely to be discovered instead of verify
2020-09-03 16:05:24 +02:00
sboys3
ce6836af88
feat: support for validating issuer from a list of values ( #91 )
...
Co-authored-by: Filip Skokan <panva.ip@gmail.com>
2020-08-10 18:34:51 +02:00
Filip Skokan
7c1cab196e
feat: add opt-in objects to verify using embedded JWS Header public keys
2020-05-04 22:37:11 +02:00
Filip Skokan
7e60722ae7
fix(typescript): types of key generate functions without overloads
...
fixes #80
2020-04-27 20:49:08 +02:00
Filip Skokan
5ca357c925
ci: get rid of dtslint
2020-03-05 16:13:49 +01:00
Filip Skokan
fc08426466
feat: add JWT.verify "typ" option for checking JWT Type Header parameter
2020-02-24 09:12:27 +01:00
Filip Skokan
b92079cb64
fix(typescript): add optional JWK.Key props and make them readonly
...
resolves #67
2020-02-13 12:32:12 +01:00
Filip Skokan
a9f6f71350
feat: keystore filtering by JWK Key thumbprint
2020-01-26 19:31:55 +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
a0c0c7ad70
feat: add JWTExpired error and JWTClaimInvalid claim and reason props
...
Resolves #62
2020-01-16 08:49:37 +01:00
Filip Skokan
b1864e319d
feat: exposed shorthands for JWT verification profiles
2020-01-12 16:40:51 +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
0277fcd189
fix(typescript): export Key Input types
2019-11-28 09:00:36 +01:00
Filip Skokan
5e1009a63e
feat: allow JWK.asKey inputs for sign/verify/encrypt/decrypt operations
2019-11-27 22:04:14 +01:00
Filip Skokan
ea60338ca6
feat: allow JWKS.KeyStore .all and .get to filter for key curves
2019-11-26 16:01:49 +01:00
Filip Skokan
c3eb8450b9
feat: return the CEK from JWE.decrypt operation with { complete: true }
2019-11-23 12:06:15 +01:00
Filip Skokan
6bb66d4f0b
feat: add JWS.verify encoding and parsing options
2019-11-05 20:09:34 +01:00
Filip Skokan
8ea968312e
feat: expose crypto.KeyObject instances in supported runtimes
2019-11-03 17:27:44 +01:00
Filip Skokan
6f8eff062b
style(typescript): disable lint rule
2019-10-01 11:25:26 +02:00
Filip Skokan
29b83fb535
chore: update dependencies
2019-09-30 15:04:37 +02:00
Filip Skokan
e1511b92a2
refactor: types and their lint
2019-09-07 19:46:33 +02:00