bowire.auth-recording.capture-flow
Runs a scriptable login-to-token auth flow, captures the token, and stores it as a named auth recording for mocks. Requires flow-capture enabled and confirmation by default.
Instructions
Run an auth flow (a scriptable login → token chain) and store the captured token as a named auth recording. Bowire EXECUTES the flow — an outbound HTTP call — so this is two-step by default (confirm=true / confirmationToken). Secrets in the flow are read from {{env.NAME}}, never inlined. Requires a host with flow-capture enabled; returns an error otherwise. Parity with bowire auth-recording capture --flow and the workbench's flow-capture.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Recording id, referenced by a mock's auth.authRecordingId. | |
| flow | Yes | The auth-flow definition as JSON (ordered request steps + a token capture). Same shape as `bowire scan --auth-flow`. | |
| name | No | Human label for the picker (default: the id). | |
| confirm | No | Skip the pending-confirmation step. | |
| workspace | No | Workspace to store under. Empty = the shared, unscoped store. | |
| confirmationToken | No | Confirmation token returned by a prior pending call. |