Skip to content

Commit 3c34e9a

Browse files
authored
Remove automatically add credential tool for openapi tool (#8)
1 parent cef8bd6 commit 3c34e9a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pkg/loader/openapi.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -298,17 +298,6 @@ func getOpenAPITools(t *openapi3.T, defaultHost, source, targetToolName string)
298298
return nil, err
299299
}
300300

301-
if len(infos) > 0 {
302-
// Set up credential tools for the first set of infos.
303-
for _, info := range infos[0] {
304-
operationServerURL, err := url.Parse(operationServer)
305-
if err != nil {
306-
return nil, fmt.Errorf("failed to parse operation server URL: %w", err)
307-
}
308-
tool.Credentials = append(tool.Credentials, info.GetCredentialToolStrings(operationServerURL.Hostname())...)
309-
}
310-
}
311-
312301
// Register
313302
toolNames = append(toolNames, tool.Parameters.Name)
314303
tools = append(tools, tool)

0 commit comments

Comments
 (0)