server/python2/django/renkanmanager/auth.py
changeset 588 95536fa18d0d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/python2/django/renkanmanager/auth.py	Tue Jan 26 17:18:04 2016 +0100
@@ -0,0 +1,10 @@
+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
\ No newline at end of file