Skip to main content

Module auth

Module auth 

Source
Expand description

Credential storage (~/.capo/agent/auth.json).

JSON map of provider name → credential. Separate file (mode 0600 on Unix) so credentials don’t share fate with general settings.

M3 includes the reader + a writer helper. M4 wires capo auth login.

Structs§

Auth

Enums§

ProviderAuth

Functions§

load
Load auth.json from the per-user agent directory.
load_from
Load from an explicit path. Returns Auth::default() if the file is missing.
save_with_mode
Write auth.json with restrictive permissions (0600 on Unix; default ACL on Windows). Used by M4’s capo auth login; exposed in M3 so the mode-check test can exercise it.