github MicahParks/keyfunc v1.4.0
Check HTTP status code

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

The purpose of this release is to change the default behavior of the ResponseExtractor to use the keyfunc.ResponseExtractorStatusOK function. Changing the default behavior is being treated as a bug fix. This release also fixes a bug within keyfunc.ResponseExtractorStatusOK, which didn't close the HTTP response body (resource leak) that only affected v1.3.0, which is now retracted in the go.mod.

This release also contains:

  • A new function, ResponseExtractorStatusAny. This is a helper function that uses the old behavior of ignoring the HTTP status code in when extracting the JWKS JSON from the response.
  • A new method, .Len. This method returns the number of keys in the JWKS.

Relevant pull requests:

Relevant issues:

Don't miss a new keyfunc release

NewReleases is sending notifications on new releases.