File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1010from qwc_services_core .runtime_config import RuntimeConfig
1111from qwc2_viewer import QWC2Viewer
1212
13- # Autologin config
14- AUTH_PATH = os .environ .get (
15- 'AUTH_SERVICE_URL' ,
16- # For backward compatiblity
17- os .environ .get ('AUTH_PATH' , '/auth/' ))
18-
1913# Flask application
2014app = Flask (__name__ )
2115# disable verbose 404 error message
@@ -52,7 +46,11 @@ def with_no_cache_headers(response):
5246
5347
5448def auth_path_prefix ():
55- return app .session_interface .tenant_path_prefix ().rstrip ("/" ) + "/" + AUTH_PATH .lstrip ("/" )
49+ tenant = tenant_handler .tenant ()
50+ config_handler = RuntimeConfig ("mapViewer" , app .logger )
51+ config = config_handler .tenant_config (tenant )
52+ auth_path = config .get ('auth_service_url' , '/auth/' )
53+ return app .session_interface .tenant_path_prefix ().rstrip ("/" ) + "/" + auth_path .lstrip ("/" )
5654
5755
5856@app .before_request
You can’t perform that action at this time.
0 commit comments