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

Better error handling #111

Merged
merged 10 commits into from
Jan 24, 2017
Merged

Better error handling #111

merged 10 commits into from
Jan 24, 2017

Conversation

brad
Copy link
Member

@brad brad commented Jan 6, 2017

@orcasgit/orcas-developers Please review. This utilizes the requests-oauthlib library a bit better, enabling auto-refresh if the expires_at attribute has been set, and letting it handle some of the auth headers more. I also enabled a compliance hook that lets requests-oauthlib see the errors in fetch and refresh responses so it will throw the proper exception. There are a few other refactors as well, but it should be entirely backward compatible.

brad and others added 10 commits January 3, 2017 15:32
- Register compliance hooks so we stop erroneously getting MissingTokenError
- Require redirect_uri
- Use request-oauthlib auto refresh mechanism, using 'expires_at'
- Let request-oauthlib do more of the work in general
- Reconfigure some tests to engage the request-oauthlib code
@grokcode
Copy link
Contributor

LGTM :shipit:

@grokcode grokcode merged commit 5867f3b into master Jan 24, 2017
@grokcode grokcode deleted the better-error-handling branch January 24, 2017 16:51
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