GetWellKnownEndpointsFromIssuerURL in internal/oidc/oidc.go should probably check the HTTP response code before trying to de-serialize a response body #308
Labels
bug
This issue reports a suspect bug or issue with the SDK itself
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 upReproduction
validator.New
GetWellKnownEndpointsFromIssuerURL
is eventually calledGetWellKnownEndpointsFromIssuerURL
doesn't check the HTTP response codeGo JWT Middleware version
2.2.2
Go version
1.23.4
The text was updated successfully, but these errors were encountered: