def __check_auth__(auth_dict):
    if not current_user.is_authenticated():
        return True, ({"auth": auth_dict}, 401)
    return None, None
To be called at the beginning of any GET or POST request.
dataset/ETHPy150Open Netflix/security_monkey/security_monkey/views/__init__.py/__check_auth__