Skip to content

Return early on invalid_client OAuth exception. - #2721

Merged
TingluoHuang merged 1 commit into
mainfrom
users/tihuang/reduceex
Jul 28, 2023
Merged

TingluoHuang merged 1 commit into
mainfrom
users/tihuang/reduceex

Conversation

@TingluoHuang

Copy link
Copy Markdown
Member

If we are getting invalid_client error on OAuth token exchange, we can safely assume the registration has been deleted.

In this case, we can exit instead of try to test the token exchange one more time.

I left the old code still there just in case I miss some edge case that actually do need an extra test.

@TingluoHuang
TingluoHuang requested a review from a team as a code owner July 27, 2023 21:46
@TingluoHuang
TingluoHuang merged commit 5b2e404 into main Jul 28, 2023
@TingluoHuang
TingluoHuang deleted the users/tihuang/reduceex branch July 28, 2023 01:30
ashb pushed a commit to ashb/runner that referenced this pull request Jul 28, 2023
AdamOlech pushed a commit to antmicro/runner that referenced this pull request Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants