Class AuthFlowCaptureResult

Namespace
Kuestenlogik.Bowire.Mocking
Assembly
Kuestenlogik.Bowire.dll

The credential produced by running an auth flow (#563 flow-capture): the captured token plus the scheme/header it should be presented under.

public sealed record AuthFlowCaptureResult : IEquatable<AuthFlowCaptureResult>
Inheritance
AuthFlowCaptureResult
Implements
Inherited Members

Constructors

AuthFlowCaptureResult(string, string?, string?)

The credential produced by running an auth flow (#563 flow-capture): the captured token plus the scheme/header it should be presented under.

public AuthFlowCaptureResult(string Credential, string? Scheme, string? Header)

Parameters

Credential string

The captured credential (bearer/basic token or api-key).

Scheme string

Derived scheme — bearer / basic / apikey — or null to keep the caller's default.

Header string

Header the credential is presented in, or null for the default.

Properties

Credential

The captured credential (bearer/basic token or api-key).

public string Credential { get; init; }

Property Value

string

Header

Header the credential is presented in, or null for the default.

public string? Header { get; init; }

Property Value

string

Scheme

Derived scheme — bearer / basic / apikey — or null to keep the caller's default.

public string? Scheme { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string?, out string?)

public void Deconstruct(out string Credential, out string? Scheme, out string? Header)

Parameters

Credential string
Scheme string
Header string

Equals(AuthFlowCaptureResult?)

public bool Equals(AuthFlowCaptureResult? other)

Parameters

other AuthFlowCaptureResult

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(AuthFlowCaptureResult?, AuthFlowCaptureResult?)

public static bool operator ==(AuthFlowCaptureResult? left, AuthFlowCaptureResult? right)

Parameters

left AuthFlowCaptureResult
right AuthFlowCaptureResult

Returns

bool

operator !=(AuthFlowCaptureResult?, AuthFlowCaptureResult?)

public static bool operator !=(AuthFlowCaptureResult? left, AuthFlowCaptureResult? right)

Parameters

left AuthFlowCaptureResult
right AuthFlowCaptureResult

Returns

bool