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
CredentialstringThe captured credential (bearer/basic token or api-key).
SchemestringDerived scheme — bearer / basic / apikey — or null to keep the caller's default.
HeaderstringHeader 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
Header
Header the credential is presented in, or null for the default.
public string? Header { get; init; }
Property Value
Scheme
Derived scheme — bearer / basic / apikey — or null to keep the caller's default.
public string? Scheme { get; init; }
Property Value
Methods
Deconstruct(out string, out string?, out string?)
public void Deconstruct(out string Credential, out string? Scheme, out string? Header)
Parameters
Equals(AuthFlowCaptureResult?)
public bool Equals(AuthFlowCaptureResult? other)
Parameters
otherAuthFlowCaptureResult
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(AuthFlowCaptureResult?, AuthFlowCaptureResult?)
public static bool operator ==(AuthFlowCaptureResult? left, AuthFlowCaptureResult? right)
Parameters
leftAuthFlowCaptureResultrightAuthFlowCaptureResult
Returns
operator !=(AuthFlowCaptureResult?, AuthFlowCaptureResult?)
public static bool operator !=(AuthFlowCaptureResult? left, AuthFlowCaptureResult? right)
Parameters
leftAuthFlowCaptureResultrightAuthFlowCaptureResult