def get_identifier(self, request):
        """
        Provides a unique string identifier for the requestor.

        This implementation returns the user's basic auth username.
        """
        try:
            username = self.extract_credentials(request)[0]
        except __HOLE__:
            username = ''
        return username or 'nouser'
dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/authentication.py/BasicAuthentication.get_identifier