Skip to content

Commit

Permalink
Update superset_config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Sep 18, 2023
1 parent 8593aae commit b2453c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b2453c1

Please sign in to comment.