'Returns a `User` if the request session currently has a logged in user.
Otherwise returns `None`.'

def authenticate(self, request):

    user = getattr(request._request, u'user', None)
    if ((not user) or (not user.is_active)):
        return None
    self.enforce_csrf(request)
    return (user, None)
