server/python/django2/renkanmanager/auth.py
author ymh <ymh.work@gmail.com>
Tue, 26 Jul 2016 18:24:33 +0200
changeset 632 5e0746deaf0d
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
Added tag 00.12.21 for changeset 26480a3604b4

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