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

Improve OAuth error handling #10

Merged

Conversation

jbrowning
Copy link
Contributor

  • Fixes a crash on network error in access_token!/2 and request_token!/2
  • Fixes a crash when an API request results in a non-200 status

Ideally this would raise an error-specific exception instead of the default RuntimeError but I think it's best to err on the side of backwards-compatibility. I've also created a test for OAuth that only tests for this issue but which could (should 😉) include more extensive tests in the future.

Fixes #8

* Fixes a crash on network error in access_token!/2 and request_token!/2
* Fixes a crash when an API request results in a non-200 status
@doomspork
Copy link
Member

Thank you @jbrowning! Improving tests for strategies is something we've been discussing for awhile.

@doomspork doomspork merged commit 97435e8 into ueberauth:master Oct 27, 2016
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