def forbidden_view(request): """ Forbidden view gets called when user is not authorized, here we just send a challenge to the user to authenticate itself. """ resp = HTTPUnauthorized() resp.www_authenticate = 'Basic realm="Secure Area"' return resp
def forbidden_view(request): res = HTTPUnauthorized() res.www_authenticate = 'Basic realm="Secure Area"' return res
def forbidden_view(request): resp = HTTPUnauthorized() resp.www_authenticate = 'Basic realm="Thinkhazard"' return resp
def forbidden_view(request): resp = HTTPUnauthorized() resp.www_authenticate = 'Basic realm="Secure Area"' return resp