From 73324a15aa524cf75deebc4172f5a1f0d0051bc6 Mon Sep 17 00:00:00 2001 From: t Date: Sat, 13 Jun 2026 12:09:00 -0600 Subject: auth: CLI auth manager + `panto auth` subcommands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add src/auth_manager.zig (turn-time resolution: load→login→refresh→exchange→ build credential, patch live config) and `panto auth status|login|logout` subcommands with a line-based device-code presenter. Add config_file.loadFromString. --- libpanto/src/public.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpanto') diff --git a/libpanto/src/public.zig b/libpanto/src/public.zig index 2c15f1e..ec8534a 100644 --- a/libpanto/src/public.zig +++ b/libpanto/src/public.zig @@ -55,6 +55,10 @@ pub fn deinit() void { config_mod.deinitHttp(); } +/// Borrow the process-global HTTP client (asserts `init` has run). Embedders +/// driving the OAuth auth flows need this to pass to `oauthLogin` etc. +pub const httpClient = config_mod.httpClient; + // =========================================================================== // Config (data, aliased) // =========================================================================== -- cgit v1.3