Open xrmx opened 5 years ago
@johnraz Thanks for the review, it's based on master because develop is missing some 4.1.0 commits. Will add changelog.
If you base your work on develop and create the PR against develop, missing commits from master should not be an issue. Those are only release related commits I believe.
Writing from my phone so I may be missing a point. Maybe some other contributors could have a look. Cheers.
@johnraz yeah, but master commits should be merged back to develop or you'll have conflicts, e.g. like in this specific case in the CHANGELOG
Yes agreed on the merge back to develop but please let’s do that in a separate PR, maybe @belugame can help, won’t have access to my computer soon (travelling right now).
Updated PR:
I added the help wanted on this PR to get it rebased and merged.
@giovannicimolin if you feel like coding be my guest 😄
With AUTO_REFRESH enabled authentication is racing against token removal of logout. If a token gets removed updating its expiry would led to a DatabaseError raised by the Django ORM.
Fix that by ignoring DatabaseError exception returned by renew_token so that the last request will get a AuthenticationFailed exception instead of a 500 error.