← Back to issue list

charmcraft whoami tries to login

View original Github issue

Metadata

Project
charmcraft
Number
#190
Type
issue
State
closed
Author
markshuttle
Labels
Created
Updated
Closed

Current evaluation

Closed without resolution, likely abandoned. The charmcraft whoami command incorrectly triggered a login flow when unauthenticated instead of displaying a not logged in status.

Suggested action:

No scores available.

Issue body

When you are not logged in, it seems that `charmcraft whoami` tries to login instead of just showing that you are logged in. Seen today with 0.6.0: ``` $ charmcraft whoami Opening an authorization web page in your browser; if it does not open, please open this URL: https://api.staging.jujucharms.com/identity/login?did=9e939be1366... ``` The preferred result would be: ``` $ charmcraft whoami Not logged in to Charmhub ```

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6 Closed without resolution, likely abandoned. The charmcraft whoami command incorrectly triggered a login flow when unauthenticated instead of displaying a not logged in status.
qwen/qwen3.6-35b-a3b Closed without resolution or comments, likely abandoned. The command incorrectly triggered a login flow instead of reporting an unauthenticated state.
qwen/qwen3.6-35b-a3b A bug report indicated charmcraft whoami incorrectly triggered a login flow when unauthenticated. The issue was closed without comments or a documented fix, suggesting it was abandoned or resolved externally.
qwen3.6-35b-a3b-mtp-q6 Closed without implementation. The charmcraft whoami command continues triggering a login flow when unauthenticated instead of reporting session status. The report was abandoned due to prolonged inactivity.
qwen3.6-35b-a3b-mtp-q6 Abandoned. The charmcraft whoami command incorrectly triggers a login flow when unauthenticated instead of displaying a Not logged in message. Closed without resolution or comments.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#672 charmcraft 1.4.0: impossible to login to charmhub charmcraft closed Closed as expected behavior. Charmcraft falls back to a non-persistent memory ring on headless systems lacking a keyring, preventing credential persistence. Maintainers advised exporting credentials via environment variables instead of implementing a code fix.
71%
#192 charmcraft login could list charms and statuses charmcraft closed Rejected. Maintainer explained the login command is rarely used directly due to auto-login features, making extra account queries unnecessary, especially for automation.
71%
#810 Confusing output from `charmcraft login` charmcraft closed Reported confusing charmcraft login error when credentials already exist. Team agreed to improve messaging to prompt users to logout first. Issue closed and superseded by tracking issue #833 to implement the fix.
70%