Repository navigation
Conversation
Signed-off-by: jdotc1 <138259519+jdotc1@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe OpenID configuration endpoint now checks the HTTP response status before parsing the response JSON. ChangesOpenID configuration
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to
|
A JSON error response from the OpenID discovery endpoint is currently parsed and returned by the cached
open_id_configurationhelper. For example, a JSON 503 response can be retained as discovery configuration instead of allowing a later request to retry.Call
raise_for_status()before JSON parsing, matching the adjacent public-key fetcher. Failed HTTP responses now raise before the cache receives a value; successful discovery responses retain the existing behavior.Validation: retained focused before/after evidence used real Requests responses and cachetools with mocked transport: a JSON 503 raises, and a subsequent 200 retry is fetched successfully. This evidence was reused without rerunning unchanged checks. Full package, integration and live identity-provider tests were not run. This change does not alter JWT, issuer, audience, redirect or token-algorithm policy.
Summary by CodeRabbit