diff --git a/superset_config.py b/superset_config.py index af4eb8b..9bfa744 100644 --- a/superset_config.py +++ b/superset_config.py @@ -38,6 +38,8 @@ def get_env_variable(var_name: str, default: Optional[str] = None) -> str: DATABASE_DB, ) # +SECRET_KEY = get_env_variable("SECRET_KEY", 'secret_key') +# #---------------------------KEYCLOACK ---------------------------- # See: https://github.com/apache/superset/discussions/13915 # See: https://stackoverflow.com/questions/54010314/using-keycloakopenid-connect-with-apache-superset/54024394#54024394 @@ -48,7 +50,6 @@ def get_env_variable(var_name: str, default: Optional[str] = None) -> str: # if OIDC_ENABLE == 'True': AUTH_TYPE = AUTH_OID - SECRET_KEY = get_env_variable("SECRET_KEY", 'secret_key') OIDC_CLIENT_SECRETS = get_env_variable("OIDC_CLIENT_SECRETS", '/app/pythonpath/client_secret.json') OIDC_ID_TOKEN_COOKIE_SECURE = False OIDC_REQUIRE_VERIFIED_EMAIL = False