Use External-Tool Auth
External-tool auth is for organizations that already have a credential helper, request signer, SSO command, or token refresh program. Restish asks the helper to prepare auth for the request instead of trying to own those credentials itself.
Config shape:
{
"apis": {
"vendor": {
"base_url": "https://api.vendor.test",
"profiles": {
"default": {
"auth": {
"type": "external-tool",
"params": {
"commandline": "./scripts/sign-request"
}
}
}
}
}
}
}
Restish approves external tools by command hash. If the helper changes, you must approve it again.
Set omitbody=true for helpers that may see binary request bodies. The
external-tool auth wire format is compatible with Restish v1 and sends body
as JSON text, so binary payloads should be omitted or represented by a digest
that your helper can verify separately.
Use this when another program owns credentials, signing, or token refresh. Keep the helper small and auditable, because it runs locally with the same access as your shell. The Authentication guide explains where external tools fit alongside built-in auth types.
Related: Authentication, Auth Reference, Config Command, Security Design.