From a21ca76d7d3e03ac1801faa879ca40c64471751d Mon Sep 17 00:00:00 2001 From: Jacob Page Date: Wed, 4 Nov 2026 13:32:37 -0800 Subject: [PATCH] feat(auth): show a tighter default set of columns in auth status and auth login `auth status` no longer lists the granted scopes by default. Now that sessions are granted the full scope set, the column is always truncated in human output. `auth login` still shows the scopes it just granted. The provider column is also dropped from both commands, since there is only one provider to choose from. Everything stays available with `--fields provider,scopes`, and the full scope list is still shown by `auth scopes`. Co-Authored-By: Claude Sonnet 5.5 --- rust/Cargo.lock | 4 ++-- rust/Cargo.toml | 2 +- rust/src/main.rs | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 621f02d3..7add356f 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -596,9 +596,9 @@ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" [[package]] name = "cli-engine" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b050b54bc79c2a5cc65e3df416f494a0cd30ea407e87a4a6cc7830c4ce4c397" +checksum = "ea2e69f391a1d3c2a4fdf93fda9a84c42a00fd199baf3346d084a40b9e3162d2" dependencies = [ "async-trait", "base64", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 4a7b8560..118efc36 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -29,7 +29,7 @@ async-trait = "0.1" bytes = "1" chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] } clap = { version = "4.5", features = ["std", "string", "derive", "env"] } -cli-engine = { version = "0.10.3", features = ["pkce-auth"] } +cli-engine = { version = "0.10.4", features = ["pkce-auth"] } dirs = "6" domains-client = { path = "domains-client" } email-client = { path = "email-client" } diff --git a/rust/src/main.rs b/rust/src/main.rs index f8d0f354..5049a5a1 100644 --- a/rust/src/main.rs +++ b/rust/src/main.rs @@ -88,6 +88,13 @@ async fn main() -> ExitCode { .with_default_auth_provider("godaddy") .with_auth_provider(auth_provider) .with_auth_extra_commands([scopes::auth_scopes_command()]) + // gddy registers a single provider, so `provider` is not useful to + // display by default, and the granted scope list is long enough to + // truncate in `auth status` human output. Both stay available via + // `--fields provider,scopes`; `auth login` still shows the scopes + // it just granted. + .with_auth_status_default_fields("identity,expires_at,env,expired,refreshable") + .with_auth_login_default_fields("identity,expires_at,env,refreshable,scopes") .with_min_stage(cli_engine::Stage::Ga) .with_environments(Arc::clone(environments::instance())) .with_root_next_actions(Arc::new(|| {