Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Handle incomplete responses

Choose a tag to compare

@Adarnof Adarnof released this 14 Apr 17:34
· 6 commits to master since this release

When the SSO servers are having a bad time and send back bad responses, they don't always come with an error message. The oautlib package then thinks the response is OK so it checks for the access token. Upon not finding said token it raises a MissingTokenError which until now had been interpreted as a reason for token invalidation.

Because it seems this happens fairly often and is leading to token hellpurging this is instead re-raised as a IncompleteResponseError.

Tokens which fail to refresh when a .require_valid() is used will be excluded from the returned queryset.