Skip to content

Commit 2e36f66

Browse files
committed
fix: Fix the identification of used auth services while tool parsing.
1 parent ef02615 commit 2e36f66

File tree

1 file changed

+2
-5
lines changed
  • packages/toolbox-core/src/toolbox_core

1 file changed

+2
-5
lines changed

packages/toolbox-core/src/toolbox_core/client.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def __parse_tool(
7979
else: # regular parameter
8080
params.append(p)
8181

82-
authn_params = identify_required_authn_params(
82+
authn_params, used_auth_keys = identify_required_authn_params(
8383
authn_params, auth_token_getters.keys()
84-
)[0]
84+
)
8585

8686
tool = ToolboxTool(
8787
session=self.__session,
@@ -97,9 +97,6 @@ def __parse_tool(
9797
)
9898

9999
used_bound_keys = set(bound_params.keys())
100-
used_auth_keys: set[str] = set()
101-
for required_sources in authn_params.values():
102-
used_auth_keys.update(required_sources)
103100

104101
return tool, used_auth_keys, used_bound_keys
105102

0 commit comments

Comments
 (0)