Class SourceOAuthAuthorization

Namespace
Cratis.Chronicle.Concepts.Captures
Assembly
Cratis.Chronicle.dll

Represents OAuth authentication for a capture source.

public record SourceOAuthAuthorization : IEquatable<SourceOAuthAuthorization>
Inheritance
SourceOAuthAuthorization
Implements
Inherited Members
Extension Methods

Constructors

SourceOAuthAuthorization(SourceOAuthAuthorization)

protected SourceOAuthAuthorization(SourceOAuthAuthorization original)

Parameters

original SourceOAuthAuthorization

SourceOAuthAuthorization(string, string, string)

Represents OAuth authentication for a capture source.

public SourceOAuthAuthorization(string Authority, string ClientId, string ClientSecret)

Parameters

Authority string

The OAuth authority.

ClientId string

The OAuth client ID.

ClientSecret string

The OAuth client secret.

Properties

Authority

The OAuth authority.

public string Authority { get; init; }

Property Value

string

ClientId

The OAuth client ID.

public string ClientId { get; init; }

Property Value

string

ClientSecret

The OAuth client secret.

public string ClientSecret { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string, out string, out string)

public void Deconstruct(out string Authority, out string ClientId, out string ClientSecret)

Parameters

Authority string
ClientId string
ClientSecret string

Equals(SourceOAuthAuthorization?)

public virtual bool Equals(SourceOAuthAuthorization? other)

Parameters

other SourceOAuthAuthorization

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SourceOAuthAuthorization?, SourceOAuthAuthorization?)

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

Parameters

left SourceOAuthAuthorization
right SourceOAuthAuthorization

Returns

bool

operator !=(SourceOAuthAuthorization?, SourceOAuthAuthorization?)

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

Parameters

left SourceOAuthAuthorization
right SourceOAuthAuthorization

Returns

bool