Skip to main content

Module import

Module import 

Source
Expand description

Imports a Google Cloud OAuth2 client id/secret from client_secret.json.

Reads the file the Cloud Console hands out directly, so the secret never has to transit a shell, an env var, or an agent’s context on its way into ~/.omni-dev/settings.json.

Structs§

ImportOutcome
The result of a successful import — enough for the CLI layer to report what happened without ever handling the secret itself.
ImportedClientCredentials
A parsed, not-yet-persisted OAuth2 client id/secret.

Constants§

GMAIL_CLIENT_SECRET_FILE
Environment variable naming an explicit client_secret.json path, consulted by [discover_client_secret_file] when no PATH argument is given.

Functions§

import_client_credentials
Discovers, parses, and saves a client_secret.json’s client id/secret to ~/.omni-dev/settings.json.
import_client_credentials_for
import_client_credentials, but honoring the named-account resolution added by issue #1500.