server/python/django2/renkanmanager/auth.py
author durandn
Thu, 03 Mar 2016 18:04:27 +0100
changeset 594 b45eb8244cd9
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
Added default to the RENKAN_USER_DISPLAY_FIELD setting. Will default to the USERFIELD_NAME for the user model

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