Created
December 24, 2010 15:17
-
-
Save bohde/754329 to your computer and use it in GitHub Desktop.
Django based auth for Tastypie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tastypie.authentication import Authentication | |
class DjangoAuthentication(Authentication): | |
"""Authenticate based upon Django session""" | |
def is_authenticated(self, request, **kwargs): | |
return request.user.is_authenticated() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome. Thank you.