Skip to content

Fix for oidc temporarily_unavailable callback - #13813

Open
rhysyngsun wants to merge 1 commit into
apache:masterfrom
mitodl:handle-oidc-temporarily-unavailable-error
Open

Fix for oidc temporarily_unavailable callback#13813
rhysyngsun wants to merge 1 commit into
apache:masterfrom
mitodl:handle-oidc-temporarily-unavailable-error

Conversation

@rhysyngsun

Copy link
Copy Markdown

Description

This adds handling for the temporarily_unavailable OAuth2 error response by reattempting OIDC authentication. Prior to this fix all error callbacks resulted in a user-facing 500 error. It's probably not appropriate to retry on other error codes as those typically indicate either configuration issues or a more prolonged outage of the authorization service, neither of which are resolved by another attempt, hence the narrow scope of the handling added here.

Which issue(s) this PR fixes:

Fixes #13776

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Aug 12, 2026
@janiussyafiq

Copy link
Copy Markdown
Contributor

Could you please fix CI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: openid-connect error response results in 500 error from apisix

2 participants