Skip to content

Commit 7d98240

Browse files
committed
Update to qwc-services-core==1.4.0
1 parent 60dc9c4 commit 7d98240

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"requests~=2.32.0",
1313
"psycopg2~=2.9.9",
1414
"SQLAlchemy~=2.0.29",
15-
"qwc-services-core~=1.3.34"
15+
"qwc-services-core~=1.4.0"
1616
]
1717

1818
[dependency-groups]

src/server.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
# create tenant handler
2828
tenant_handler = TenantHandler(app.logger)
29+
app.wsgi_app = TenantPrefixMiddleware(app.wsgi_app)
30+
app.session_interface = TenantSessionInterface()
2931

3032

3133
def qwc2_viewer_handler():
@@ -49,10 +51,6 @@ def with_no_cache_headers(response):
4951
return response
5052

5153

52-
app.wsgi_app = TenantPrefixMiddleware(app.wsgi_app)
53-
app.session_interface = TenantSessionInterface(os.environ)
54-
55-
5654
def auth_path_prefix():
5755
return app.session_interface.tenant_path_prefix().rstrip("/") + "/" + AUTH_PATH.lstrip("/")
5856

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)