'Handles checking if the user is authenticated and dealing with
unauthenticated users.
Mostly a hook, this uses class assigned to ``authentication`` from
``Resource._meta``.'

def is_authenticated(self, request):

    auth_result = self._meta.authentication.is_authenticated(request)
    if isinstance(auth_result, HttpResponse):
        raise ImmediateHttpResponse(response=auth_result)
    if (auth_result is not True):
        raise ImmediateHttpResponse(response=http.HttpUnauthorized())
