def authenticate(self, request):
        try:
            return TokenAuthentication.authenticate(TokenAuthentication(), request)
        except:
            return AnonymousUser(), None
Authenticate the request for anyone or if a valid token is provided, a user.
dataset/ETHPy150Open deis/deis/controller/api/authentication.py/AnonymousOrAuthenticatedAuthentication.authenticate