Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tastypie_oauth/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from django.contrib.auth.models import AnonymousUser
from django.utils import timezone
from tastypie.authentication import Authentication
from tastypie.http import HttpUnauthorized

"""
This is a simple OAuth 2.0 authentication model for tastypie
Expand Down Expand Up @@ -64,7 +63,7 @@ def is_authenticated(self, request, **kwargs):

# If OAuth authentication is successful, set the request user to
# the token user for authorization
request.user = token.user
request.user = token.user or AnonymousUser()

# If OAuth authentication is successful, set oauth_consumer_key on
# request in case we need it later
Expand Down