server/python/django2/renkanmanager/auth.py
author ymh <ymh.work@gmail.com>
Tue, 21 Jun 2016 17:53:06 +0200
changeset 618 3051b847c124
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
validation_timestamp and create_new_revision are not part of the data. move them to query parameters

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