server/python/django2/renkanmanager/auth.py
author ymh <ymh.work@gmail.com>
Wed, 13 Sep 2017 18:31:33 +0200
changeset 656 95e2c6d21b5f
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
Added tag V00.13.01 for changeset 8917ba481609

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