server/python/django2/renkanmanager/auth.py
author ymh <ymh.work@gmail.com>
Thu, 21 Apr 2016 16:18:08 +0200
changeset 607 d55e89c25d51
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
Added tag V00.12.19 for changeset e7e699f3cf97

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