Tolerate initial JWK Set HTTP Error
The purpose of this release is to add a new feature that allows keyfunc.Get
to continue without error even if the initial HTTP request to the JWK Set fails. This supports the use case of multiple JWK Sets when a subset are undergoing maintenance, among others.
This is done through the new TolerateInitialJWKHTTPError
field on the keyfunc.Options
data structure. If the initial HTTP request fails, the resulting *keyfunc.JWKS
will contain no keys, but have the opportunity to be populated by a future background goroutine refresh.
Relevant issues:
Relevant pull requests: