From ea4353079b22b00ea6e74c0bdb1bf2c8449e7bc5 Mon Sep 17 00:00:00 2001 From: Emmanuel Nyachoke Date: Tue, 18 Jun 2024 15:08:01 +0300 Subject: [PATCH] Remove extra space --- .../superset/assets/datasets/Analytics/concepts.yaml | 2 +- distro/configs/superset/superset_config.py | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/distro/configs/superset/assets/datasets/Analytics/concepts.yaml b/distro/configs/superset/assets/datasets/Analytics/concepts.yaml index e9a67dd..f6342b2 100644 --- a/distro/configs/superset/assets/datasets/Analytics/concepts.yaml +++ b/distro/configs/superset/assets/datasets/Analytics/concepts.yaml @@ -5,7 +5,7 @@ default_endpoint: null offset: 0 cache_timeout: null schema: public -sql: 'SELECT * FROM concepts ' +sql: 'SELECT * FROM concepts' params: null template_params: null filter_select_enabled: true diff --git a/distro/configs/superset/superset_config.py b/distro/configs/superset/superset_config.py index 5f773e1..48513b7 100644 --- a/distro/configs/superset/superset_config.py +++ b/distro/configs/superset/superset_config.py @@ -120,9 +120,12 @@ def __call__(self, environ, start_response): # Enable the security manager API. FAB_ADD_SECURITY_API = True -if os.getenv("ENABLE_OAUTH"): +if os.getenv("ENABLE_OAUTH") == "true": from security import OIDCSecurityManager from flask_appbuilder.security.manager import AUTH_OID + KEYCLOAK_URL = os.getenv('KEYCLOAK_URL') + SUPERSET_CLIENT_SECRET = os.getenv('SUPERSET_CLIENT_SECRET') + SUPERSET_URL = os.getenv('SUPERSET_URL') AUTH_TYPE = AUTH_OID OIDC_ID_TOKEN_COOKIE_SECURE = False OIDC_REQUIRE_VERIFIED_EMAIL = False @@ -130,7 +133,3 @@ def __call__(self, environ, start_response): AUTH_USER_REGISTRATION_ROLE = 'Gamma' CUSTOM_SECURITY_MANAGER = OIDCSecurityManager OIDC_CLIENT_SECRETS = '/etc/superset/client_secret.json' - - - - \ No newline at end of file