Skip to content

feat: auth_logout, fix auth_select, clean up env handling#5

Merged
aniongithub merged 1 commit into
mainfrom
feat/auth-improvements
Apr 22, 2026
Merged

feat: auth_logout, fix auth_select, clean up env handling#5
aniongithub merged 1 commit into
mainfrom
feat/auth-improvements

Conversation

@aniongithub
Copy link
Copy Markdown
Owner

Changes

New: auth_logout tool

Revoke/logout an authenticated account. Implemented for all 5 providers:

  • GitHub: gh auth logout --user
  • Azure: az logout
  • AWS: aws sso logout --profile
  • GCloud: gcloud auth revoke
  • Kubernetes: kubectl config delete-context

Fix: auth_select semantics

Was just verifying a handle — now actually switches the active account:

  • GitHub: gh auth switch --user
  • Azure: az account set --subscription
  • GCloud: gcloud config set account
  • Kubernetes: kubectl config use-context

Cleanup: GitHub auth env handling

  • Removed run_cli_clean_auth and auth_env_vars_to_clear from cli.rs
  • Auth module uses run_cli_with_env with explicit GH_TOKEN="" — clean, no env var lists
  • GitHub auth_login auto-detects existing accounts and uses gh auth refresh for scope additions

Tool count: 33 (was 32)

- auth_logout: new tool + trait method for all 5 providers
- auth_select: now actually switches active account (was just verify)
- GitHub auth: explicit GH_TOKEN='' via run_cli_with_env, removed run_cli_clean_auth
- GitHub login: auto-detects existing accounts, uses gh auth refresh
- README: complete rewrite — clearer value prop, problem/solution framing,
  updated architecture diagram, auth broker docs, 33 tools
- SKILL.md: added auth_logout to tool list
@aniongithub aniongithub force-pushed the feat/auth-improvements branch from 01eed71 to 3b18c7a Compare April 22, 2026 17:26
@aniongithub aniongithub merged commit cc1f7a1 into main Apr 22, 2026
1 check passed
@aniongithub aniongithub deleted the feat/auth-improvements branch April 22, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant