server/python2/django/renkanmanager/auth.py
author durandn
Tue, 26 Jan 2016 17:18:04 +0100
changeset 588 95536fa18d0d
permissions -rw-r--r--
Minor adjustements to properly interact with Renkan client

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