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

Fixed bug when token expires. #6

Closed
wants to merge 1 commit into from
Closed

Conversation

diegueus9
Copy link

When some token-based authentication backends recive an expired token raise an AuthenticationFailed that generate a 500 error when trying to log, this is hard to find and shouldn't change the original 401 status code to a 500 error.

With try/except we catch the AuthenticationFailed exception raised by the backend, save the record and don't change the normal flow of the original request.

When some token-based authentication backend recives an expired token raises an AuthenticationFailed that generates an 500 error when trying to log.
@diegueus9 diegueus9 closed this Sep 25, 2015
@diegueus9
Copy link
Author

Doesn't pass all the tests of CI

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.

1 participant