Replaced nginx native with openresty for logout injection. Right now still buggy on nextcloud and espocrm

This commit is contained in:
2025-07-24 03:19:16 +02:00
parent f5213fd59c
commit f62355e490
129 changed files with 515 additions and 319 deletions

View File

@@ -5,7 +5,7 @@ import yaml
class TestUniversalLogoutSetting(unittest.TestCase):
ROLES_PATH = "roles/web-app-*/config/main.yml"
def test_universal_logout_defined(self):
def test_logout_defined(self):
files = glob.glob(self.ROLES_PATH)
self.assertGreater(len(files), 0, f"No role config files found under {self.ROLES_PATH}")
@@ -23,16 +23,16 @@ class TestUniversalLogoutSetting(unittest.TestCase):
if data is not None:
features = data.get("features", {})
if "universal_logout" not in features:
if "logout" not in features:
errors.append(
f"Missing 'universal_logout' setting in features of '{file_path}'. "
"You must explicitly set 'universal_logout' to true or false for this app."
f"Missing 'logout' setting in features of '{file_path}'. "
"You must explicitly set 'logout' to true or false for this app."
)
else:
val = features["universal_logout"]
val = features["logout"]
if not isinstance(val, bool):
errors.append(
f"The 'universal_logout' setting in '{file_path}' must be boolean true or false, "
f"The 'logout' setting in '{file_path}' must be boolean true or false, "
f"but found: {val} (type {type(val).__name__})"
)