def METHOD_NAME(self, request):
    """
    Ensures that the user is authenticated (e.g. not an AnonymousUser)
    """
    super().METHOD_NAME(request)
    if request.user.is_anonymous:
        raise AuthenticationFailed