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§
- Import
Outcome - The result of a successful import — enough for the CLI layer to report what happened without ever handling the secret itself.
- Imported
Client Credentials - A parsed, not-yet-persisted OAuth2 client id/secret.
Constants§
- GMAIL_
CLIENT_ SECRET_ FILE - Environment variable naming an explicit
client_secret.jsonpath, consulted by [discover_client_secret_file] when noPATHargument 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.