Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 5d89431

Browse files
feat(user-token): Add Web UI token to environment variables (#237)
* add token in environment variables * assign value of token to my_env * update environment variable name to api_token instead of token * replace upper case API_TOKEN to lower case api_token in extensions.py file
1 parent 896fcf3 commit 5d89431

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aqueductcore/backend/services/extensions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ async def execute(
125125

126126
my_env = {key: str(val) for key, val in (extension.constants or {}).items()}
127127
my_env.update(params)
128+
my_env["api_token"] = user_info.token
128129
my_env["aqueduct_url"] = extension.aqueduct_url
129130
if extension.aqueduct_api_token is not None:
130-
my_env["API_TOKEN"] = extension.aqueduct_api_token
131+
my_env["api_token"] = extension.aqueduct_api_token
131132

132133
cwd = Path.home()
133134
if extension.manifest_file:

0 commit comments

Comments
 (0)