Class AuthCapture

Namespace
Kuestenlogik.Bowire.Security.Scanner
Assembly
Kuestenlogik.Bowire.Security.Scanner.dll

Extracts one value from a step's response into a named flow variable. Exactly one source (Json / Regex / Header / Cookie) is used, checked in that order.

public sealed class AuthCapture
Inheritance
AuthCapture
Inherited Members

Constructors

AuthCapture()

public AuthCapture()

Properties

Cookie name to capture from Set-Cookie.

[JsonPropertyName("cookie")]
public string? Cookie { get; init; }

Property Value

string

Header

Response header name to capture.

[JsonPropertyName("header")]
public string? Header { get; init; }

Property Value

string

Json

Dotted JSON path into the response body, e.g. access_token, $.data.token, tokens[0].jwt.

[JsonPropertyName("json")]
public string? Json { get; init; }

Property Value

string

Regex

Regex over the raw response body; group 1 (or the whole match if no group) is captured.

[JsonPropertyName("regex")]
public string? Regex { get; init; }

Property Value

string

Var

Variable name the captured value is stored under, referenced later as {{var}}.

[JsonPropertyName("var")]
public string Var { get; init; }

Property Value

string