server/python/django2/renkanmanager/auth.py
author ymh <ymh.work@gmail.com>
Sun, 14 Jul 2024 22:00:08 +0200
changeset 666 9d6550026232
parent 665 69d13e7dd286
permissions -rw-r--r--
Added tag V00.13.04 for changeset 69d13e7dd286

# -*- coding: utf-8 -*-
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