OAuthCredentials
Namespace: E2E.OAuth
public sealed class OAuthCredentialsWhat 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
Properties
Section titled “Properties”Access
Section titled “Access”public required string Access { get; init; }Value: string
Expires
Section titled “Expires”public long Expires { get; init; }Epoch milliseconds; 0 when the token does not expire.
Value: long
public IReadOnlyDictionary<string, string> Extra { get; init; }Provider fields: accountId, residency, enterpriseUrl, orgId.
Value: IReadOnlyDictionary<string, string>
Refresh
Section titled “Refresh”public string Refresh { get; init; }Empty when the vendor issues non-expiring tokens.
Value: string
Methods
Section titled “Methods”Get(string)
Section titled “Get(string)”public string? Get(string name)Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
Returns: string
With(string, string?)
Section titled “With(string, string?)”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