server/python2/django/renkanmanager/auth.py
changeset 588 95536fa18d0d
equal deleted inserted replaced
587:fb0041aa74d3 588:95536fa18d0d
       
     1 from rest_framework.authentication import SessionAuthentication 
       
     2 
       
     3 class CsrfExemptSessionAuthentication(SessionAuthentication):
       
     4     """
       
     5         Session authentication class to use with Renkan client, as it does not provide a csrf token
       
     6     """
       
     7     
       
     8     
       
     9     def enforce_csrf(self, request):
       
    10         return