def login_required(self, request):
        response = HttpResponse(_('Authorization Required'), mimetype='text/plain')
        response['WWW-Authenticate'] = 'Basic realm="%s"' % self.__class__.realm
        response.status_code = 401
        return response
Returns a response indicating the user needs to log in
dataset/ETHPy150Open fiam/wapi/auth/basic.py/ApiAuthBasic.login_required