def auth_required(self, view_func):
        @wraps(view_func)
        def wrapped_view_func(*args, **kwargs):
            if current_app.config['HAWK_ENABLED']:
                if current_app.config['HAWK_ALLOW_COOKIE_AUTH'] and session:
                    self._auth_by_cookie()
                else:
                    self._auth_by_signature()
            return view_func(*args, **kwargs)

        return wrapped_view_func
Decorator that provides an access to view function for
dataset/ETHPy150Open marselester/flask-api-utils/api_utils/auth.py/Hawk.auth_required