github MicahParks/keyfunc v2.1.0
Tolerate initial JWK Set HTTP Error

latest releases: v3.8.0, v3.7.0, v3.6.2...
2 years ago

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:

Don't miss a new keyfunc release

NewReleases is sending notifications on new releases.