address backend security and test suggestions

This commit is contained in:
Christian Krakau-Louis
2026-05-18 16:44:06 +02:00
parent 8f7c41193f
commit b4191e956c
11 changed files with 320 additions and 35 deletions
+13
View File
@@ -170,3 +170,16 @@ class TestAdminApiKeySetting:
monkeypatch.setenv("ADMIN_API_KEY", long_key)
settings = Settings()
assert settings.ADMIN_API_KEY == long_key
class TestLogtoSettings:
def test_ssl_verification_is_enabled_by_default(self):
settings = Settings()
assert settings.LOGTO_SKIP_SSL_VERIFY is False
def test_ssl_verification_can_be_skipped_explicitly(self, monkeypatch):
monkeypatch.setenv("LOGTO_SKIP_SSL_VERIFY", "true")
settings = Settings()
assert settings.LOGTO_SKIP_SSL_VERIFY is True