server/python/django2/renkanmanager/auth.py
author durandn
Tue, 02 Feb 2016 16:21:20 +0100
changeset 589 0ae11aa255a3
parent 588 server/python2/django/renkanmanager/auth.py@95536fa18d0d
child 665 69d13e7dd286
permissions -rw-r--r--
Moved python2/django into a django2 folder for consistency + clarified serializers fields name

from rest_framework.authentication import SessionAuthentication 

class CsrfExemptSessionAuthentication(SessionAuthentication):
    """
        Session authentication class to use with Renkan client, as it does not provide a csrf token
    """
    
    
    def enforce_csrf(self, request):
        return