Skip to content

CredentialStores

Namespace: E2E.OAuth

public static class CredentialStores

The stores the subscription models and the CLI use.

Inheritance: object

View source

public const string EnvironmentVariable = "E2E_OAUTH_CREDENTIALS"

Credentials JSON in the environment, standing in for the file on a machine the user cannot sign in on.

Value: string

View source

public static ICredentialStore Default()

EnvironmentVariable when set, else the file at DefaultPath().

Returns: ICredentialStore

View source

public static string DefaultPath()

$XDG_CONFIG_HOME/e2e/oauth.json, or ~/.config/e2e/oauth.json: the file upstream’s e2e login writes, so a login made with either CLI serves both.

Returns: string

View source