Skip to content

Instantly share code, notes, and snippets.

@synic
Created August 12, 2015 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save synic/43bac949fe9fdc2467c6 to your computer and use it in GitHub Desktop.
Save synic/43bac949fe9fdc2467c6 to your computer and use it in GitHub Desktop.
class OAuth2Authentication(authentication.OAuth2Authentication):
def authenticate(self, request):
valid_request = super(OAuth2Authentication, self).authenticate(request)
is_valid = valid_request is not None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment