Skip to content

Commit ce513f8

Browse files
authored
update Changes for #1620-#1628 (#1629)
1 parent 1d4252f commit ce513f8

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Changes

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,31 @@ v3.0.14 UNRELEASED
6363
failed (e.g. HTTP 500 responses). Each failure killed an httprc worker goroutine,
6464
and after all workers were exhausted, subsequent `Refresh()` calls would block forever. (#1551)
6565

66+
* [jws] Add `jws.RegisterAlgorithmForCurve()` for external modules to register
67+
algorithm-to-curve mappings. `jws.AlgorithmsForKey()` now filters results
68+
by the key's curve when applicable. (#1620)
69+
70+
* [jwk] Add `jwk.WithMaxFetchBodySize()` option to limit the response body size
71+
when fetching remote JWK Sets via `jwk.Fetch()` and `jwk.Cache`. (#1622)
72+
73+
* [jwe] Add `jwe.WithMaxPBES2Count()` and `jwe.WithMinPBES2Count()` as per-call
74+
options to `jwe.Decrypt()`, allowing callers to override the global PBES2
75+
iteration count limits on a per-decryption basis. (#1623)
76+
77+
* [jwk] `jwk.X509CertChain()` now correctly returns `false` as the second return
78+
value when the certificate chain is nil. (#1624)
79+
80+
* [jwk] Fixed a data race in the x509 decoder registry iteration. (#1625)
81+
82+
* [jwk] `jwk.Parse()` now limits PEM input to 1,000 blocks maximum to prevent
83+
resource exhaustion from inputs containing thousands of small PEM blocks. (#1626)
84+
85+
* [jwt] `jwt.Validate()` now rejects negative durations passed to
86+
`jwt.WithAcceptableSkew()`. (#1627)
87+
88+
* [jwt/openid] `openid.Birthdate` now accepts year `0000` as a valid value per
89+
the OpenID Connect Core specification. (#1628)
90+
6691
v3.0.13 12 Jan 2026
6792
* [jwt] The `jwt.WithContext()` option is now properly being passed to `jws.Verify()` from
6893
`jwt.Parse()`.

0 commit comments

Comments
 (0)