github.com/amrnt/deis@v1.3.1/controller/api/authentication.py (about) 1 from django.contrib.auth.models import AnonymousUser 2 from rest_framework import authentication 3 4 5 class AnonymousAuthentication(authentication.BaseAuthentication): 6 7 def authenticate(self, request): 8 """ 9 Authenticate the request for anyone! 10 """ 11 return AnonymousUser(), None