Skip to content

Commit

Permalink
fix: mistyped env variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
nexovec committed Jul 30, 2024
1 parent 4453a4b commit 3b0eba4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ ADMIN_PASSWORD=admin
KC_SERVER_METADATA_URL="http://192.168.27.55/realms/etikos/.well-known/openid-configuration"
KC_API_BASE_URL="http://192.168.27.55/realms/etikos/protocol/"
KC_CLIENT_SECRET="2vF08d2BlT8XtCLIlQQifIiXi2X5ZRNl"
LOGOUT_REDIRECT_URL="http://192.168.27.55/realms/etikos/protocol/openid-connect/logout"
KC_LOGOUT_REDIRECT_URL="http://192.168.27.55/realms/etikos/protocol/openid-connect/logout"
14 changes: 7 additions & 7 deletions docker/pythonpath_dev/superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
EXAMPLES_PORT = os.getenv("EXAMPLES_PORT")
EXAMPLES_DB = os.getenv("EXAMPLES_DB")

KC_SERVER_METADATA_URL = os.getenv("SERVER_METADATA_URL")
KC_API_BASE_URL = os.getenv("API_BASE_URL")
LOGOUT_REDIRECT_URL = os.getenv("LOGOUT_REDIRECT_URL")
KC_CLIENT_SECRET = os.getenv("KC_CLIENT_SECRET")
SERVER_METADATA_URL = os.getenv("KC_SERVER_METADATA_URL")
API_BASE_URL = os.getenv("KC_API_BASE_URL")
CLIENT_SECRET = os.getenv("KC_CLIENT_SECRET")
LOGOUT_REDIRECT_URL = os.getenv("KC_LOGOUT_REDIRECT_URL")

# The SQLAlchemy connection string.
SQLALCHEMY_DATABASE_URI = (
Expand Down Expand Up @@ -162,12 +162,12 @@ class CeleryConfig:
"token_key": "access_token", # Keycloak uses 'access_token' for the access token
"remote_app": {
"client_id": "superset",
"client_secret": KC_CLIENT_SECRET,
"client_secret": CLIENT_SECRET,
"client_kwargs": {
"scope": "openid profile email",
},
"server_metadata_url": KC_SERVER_METADATA_URL,
"api_base_url": KC_API_BASE_URL,
"server_metadata_url": SERVER_METADATA_URL,
"api_base_url": API_BASE_URL
},
}
]
Expand Down

0 comments on commit 3b0eba4

Please sign in to comment.