Class OAuthAuthorization

Namespace
Cratis.Chronicle.Security
Assembly
Cratis.Chronicle.dll

Represents OAuth authentication.

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

Constructors

OAuthAuthorization(Authority, ClientId, ClientSecret)

Represents OAuth authentication.

public OAuthAuthorization(Authority Authority, ClientId ClientId, ClientSecret ClientSecret)

Parameters

Authority Authority

The OAuth authority.

ClientId ClientId

The OAuth client ID.

ClientSecret ClientSecret

The OAuth client secret.

OAuthAuthorization(OAuthAuthorization)

protected OAuthAuthorization(OAuthAuthorization original)

Parameters

original OAuthAuthorization

Properties

Authority

The OAuth authority.

public Authority Authority { get; init; }

Property Value

Authority

ClientId

The OAuth client ID.

public ClientId ClientId { get; init; }

Property Value

ClientId

ClientSecret

The OAuth client secret.

public ClientSecret ClientSecret { get; init; }

Property Value

ClientSecret

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Scope

Gets the optional OAuth scope.

public string Scope { get; init; }

Property Value

string

Methods

Deconstruct(out Authority, out ClientId, out ClientSecret)

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

Parameters

Authority Authority
ClientId ClientId
ClientSecret ClientSecret

Equals(OAuthAuthorization?)

public virtual bool Equals(OAuthAuthorization? other)

Parameters

other OAuthAuthorization

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

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

Parameters

left OAuthAuthorization
right OAuthAuthorization

Returns

bool

operator !=(OAuthAuthorization?, OAuthAuthorization?)

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

Parameters

left OAuthAuthorization
right OAuthAuthorization

Returns

bool