Skip to content

Commit 19642df

Browse files
committed
cleanup
1 parent e98d50b commit 19642df

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

services/api-server/src/simcore_service_api_server/api/dependencies/webserver_http.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
Identity,
1515
get_active_user_email,
1616
get_current_identity,
17-
get_product_name,
1817
)
1918

2019

@@ -67,17 +66,15 @@ def get_webserver_session(
6766
app: Annotated[FastAPI, Depends(get_app)],
6867
session_cookies: Annotated[dict, Depends(get_session_cookie)],
6968
identity: Annotated[Identity, Depends(get_current_identity)],
70-
product_name: Annotated[str, Depends(get_product_name)],
7169
) -> AuthSession:
7270
"""
7371
Lifetime of AuthSession wrapper is one request because it needs different session cookies
7472
Lifetime of embedded client is attached to the app lifetime
7573
"""
76-
assert identity.product_name == product_name # nosec
7774
session = AuthSession.create(
7875
app,
7976
session_cookies=session_cookies,
80-
product_name=product_name,
77+
product_name=identity.product_name,
8178
user_id=identity.user_id,
8279
)
8380
assert isinstance(session, AuthSession) # nosec

0 commit comments

Comments
 (0)