Checklist
Description
If you've constructed your validator's issuer URL incorrectly and it tries to find your provider'sopenid-configuration at a bad location, a 404 makes its way to the JSON deserialize call and a really unhelpful error message bubbles its way up
Reproduction
- given a bad issuer URL in
validator.New
- when
GetWellKnownEndpointsFromIssuerURL is eventually called
- then an unhelpful error is bubbled up cause
GetWellKnownEndpointsFromIssuerURL doesn't check the HTTP response code
Go JWT Middleware version
2.2.2
Go version
1.23.4