def required(self, fn):
        @functools.wraps(fn)
        def decorated(*args, **kwargs):
            if (not self._check_auth()
               # Don't try to force authentication if the request is part
               # of the authentication process - otherwise we end up in a
               # loop.
               and request.blueprint != self.blueprint.name):
                return redirect(url_for("%s.login" % self.blueprint.name,
                                        next=request.url))
            return fn(*args, **kwargs)
        return decorated
Require several SmartOS packages to be uninstalled.
dataset/ETHPy150Open sashka/flask-googleauth/flask_googleauth.py/GoogleAuth.required--crossover with--dataset/ETHPy150Open ronnix/fabtools/fabtools/require/pkg.py/nopackages