'Provides a unique string identifier for the requestor.
This implementation returns a combination of IP address and hostname.'

def get_identifier(self, request):

    try:
        return request._authentication_backend.get_identifier(request)
    except AttributeError:
        return u'nouser'
