From 3e4e4b3126dcedc00005cc52c9dd7570335abfc3 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 3 Apr 2024 11:19:40 +0300 Subject: [PATCH] fix(api): create tenant in no auth (#1041) --- keep/api/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keep/api/config.py b/keep/api/config.py index 5c4d86d9c3..395f244b0d 100644 --- a/keep/api/config.py +++ b/keep/api/config.py @@ -20,7 +20,10 @@ def on_starting(server=None): create_db_and_tables() # Create single tenant if it doesn't exist - if AUTH_TYPE == AuthenticationType.SINGLE_TENANT.value: + if AUTH_TYPE in [ + AuthenticationType.SINGLE_TENANT.value, + AuthenticationType.NO_AUTH.value, + ]: try_create_single_tenant(SINGLE_TENANT_UUID) if os.environ.get("USE_NGROK", "false") == "true":