server/python/django2/renkanmanager/auth.py
changeset 665 69d13e7dd286
parent 589 0ae11aa255a3
equal deleted inserted replaced
664:a7147aac6990 665:69d13e7dd286
       
     1 # -*- coding: utf-8 -*-
     1 from rest_framework.authentication import SessionAuthentication 
     2 from rest_framework.authentication import SessionAuthentication 
     2 
     3 
     3 class CsrfExemptSessionAuthentication(SessionAuthentication):
     4 class CsrfExemptSessionAuthentication(SessionAuthentication):
     4     """
     5     """
     5         Session authentication class to use with Renkan client, as it does not provide a csrf token
     6         Session authentication class to use with Renkan client, as it does not provide a csrf token