Class MockAuthResolution

Namespace
Kuestenlogik.Bowire.Mock.Management
Assembly
Kuestenlogik.Bowire.Mock.dll

A resolved credential: the value #562's gate accepts, plus the optional scheme / header it is presented under.

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

Constructors

MockAuthResolution(string, string?, string?)

A resolved credential: the value #562's gate accepts, plus the optional scheme / header it is presented under.

public MockAuthResolution(string Credential, string? Scheme = null, string? Header = null)

Parameters

Credential string

The captured credential the gate compares against.

Scheme string

Credential scheme override (bearer / apikey / basic), or null to keep the config's.

Header string

Header the credential is carried in, or null to keep the config's.

Properties

Credential

The captured credential the gate compares against.

public string Credential { get; init; }

Property Value

string

Header

Header the credential is carried in, or null to keep the config's.

public string? Header { get; init; }

Property Value

string

Scheme

Credential scheme override (bearer / apikey / basic), or null to keep the config's.

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(MockAuthResolution?)

public bool Equals(MockAuthResolution? other)

Parameters

other MockAuthResolution

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 ==(MockAuthResolution?, MockAuthResolution?)

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

Parameters

left MockAuthResolution
right MockAuthResolution

Returns

bool

operator !=(MockAuthResolution?, MockAuthResolution?)

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

Parameters

left MockAuthResolution
right MockAuthResolution

Returns

bool