Skip to content

Commit

Permalink
Remove extra space
Browse files Browse the repository at this point in the history
  • Loading branch information
enyachoke committed Jun 18, 2024
1 parent 8529105 commit ea43530
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions distro/configs/superset/superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,16 @@ 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
AUTH_USER_REGISTRATION = True
AUTH_USER_REGISTRATION_ROLE = 'Gamma'
CUSTOM_SECURITY_MANAGER = OIDCSecurityManager
OIDC_CLIENT_SECRETS = '/etc/superset/client_secret.json'




0 comments on commit ea43530

Please sign in to comment.