server/python/django2/renkanmanager/auth.py
author durandn
Tue, 03 May 2016 14:32:28 +0200
changeset 610 b9edc1c1538a
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
reworked views and serializers to pass and take into account the "validation timestamp" to the model + refactored models to have a content validation method + adapted tests

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