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
CredentialstringThe captured credential the gate compares against.
SchemestringCredential scheme override (bearer / apikey / basic), or null to keep the config's.
HeaderstringHeader 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
Header
Header the credential is carried in, or null to keep the config's.
public string? Header { get; init; }
Property Value
Scheme
Credential scheme override (bearer / apikey / basic), or null to keep the config's.
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(MockAuthResolution?)
public bool Equals(MockAuthResolution? other)
Parameters
otherMockAuthResolution
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 ==(MockAuthResolution?, MockAuthResolution?)
public static bool operator ==(MockAuthResolution? left, MockAuthResolution? right)
Parameters
leftMockAuthResolutionrightMockAuthResolution
Returns
operator !=(MockAuthResolution?, MockAuthResolution?)
public static bool operator !=(MockAuthResolution? left, MockAuthResolution? right)
Parameters
leftMockAuthResolutionrightMockAuthResolution