Skip to content

OAuthCredentials

Namespace: E2E.OAuth

public sealed class OAuthCredentials

What a login returns and a refresh renews. Stored as upstream stores it: access, refresh, expires (epoch milliseconds, 0 when the token does not expire), plus each provider’s own fields.

Inheritance: object

View source

public required string Access { get; init; }

Value: string

View source

public long Expires { get; init; }

Epoch milliseconds; 0 when the token does not expire.

Value: long

View source

public IReadOnlyDictionary<string, string> Extra { get; init; }

Provider fields: accountId, residency, enterpriseUrl, orgId.

Value: IReadOnlyDictionary<string, string>

View source

public string Refresh { get; init; }

Empty when the vendor issues non-expiring tokens.

Value: string

View source

public string? Get(string name)

Parameters

Name Type Description
name string

Returns: string

View source

public OAuthCredentials With(string name, string? value)

A copy with <code class=“paramref”>name</code> set, or removed when <code class=“paramref”>value</code> is null.

Parameters

Name Type Description
name string
value string

Returns: OAuthCredentials

View source