Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return early on invalid_client OAuth exception. #2721

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

TingluoHuang
Copy link
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
10 checks passed
@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
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.

None yet

2 participants