Exemplo n.º 1
0
 def process_request(self, request):
     for context in get_authentication_contexts():
         context.user = lambda: context.get_user(request)
Exemplo n.º 2
0
 def process_response(self, request, response):
     for context in get_authentication_contexts():
         context.user = None
     return response