server/python/django2/renkanmanager/auth.py
author durandn
Thu, 03 Mar 2016 17:09:27 +0100
changeset 593 2ff785d7026c
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
corrected tests and serializer so they can support custom user model, added a readme (to be expanded) with configuration information for the field renkan api will use to render user information

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