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

Fix crash on bad auth code #469

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Fix crash on bad auth code #469

merged 1 commit into from
Feb 21, 2023

Conversation

c-w
Copy link
Contributor

@c-w c-w commented Jan 16, 2023

When using the code authentication flow, a bad value currently crashes the library which leads to a HTTP 500 response bubbling up. This is inconsistent with the access token authentication flow which instead return a HTTP 400 response for a bad value.

This pull request fixes the inconsistency by returning a HTTP 400 response when the authentication code is rejected by the social provider.

@iMerica iMerica merged commit 62c1dc9 into iMerica:master Feb 21, 2023
@c-w c-w deleted the auth-code-error-handling branch February 21, 2023 09:18
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