Interface IAuthFlowCapturer
- Namespace
- Kuestenlogik.Bowire.Mocking
- Assembly
- Kuestenlogik.Bowire.dll
Runs an auth-flow definition (a scriptable login → token chain) and returns the captured credential (#563). This is the seam that keeps the outbound flow-execution — which lives in the optional Kuestenlogik.Bowire.Security.Scanner sibling — reachable from Core's auth-recording endpoint and the MCP tools without Core referencing the Scanner. Hosts that don't wire it up simply don't offer flow-capture (the store's static-credential capture still works).
public interface IAuthFlowCapturer
Remarks
CaptureAsync(string, CancellationToken) makes OUTBOUND HTTP calls (it executes the login chain), so it only ever runs as a direct, explicit result of an operator action — a CLI invocation, a workbench click, or a confirmed MCP tool call.
Methods
CaptureAsync(string, CancellationToken)
Execute the flow described by flowJson and return the
captured credential. Throws when the flow is misconfigured or yields no
token (fail closed — never returns an empty credential).
Task<AuthFlowCaptureResult> CaptureAsync(string flowJson, CancellationToken ct = default)
Parameters
flowJsonstringctCancellationToken