server/python/django2/renkanmanager/auth.py
author durandn
Mon, 03 Oct 2016 14:49:15 +0200
changeset 638 adfa5023c55f
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
integrated changes from renkan client into renkanmanager static files (option for uneditable title in edit mode)

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