← 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

Fixed in merged PR #609 (merge commit 69df5a9a): whoami now reports logged-out or expired credentials without opening an authorization page.

Resolution: closed resolved

Reason: PR #609 was merged and added allow_login handling so whoami does not attempt automatic authentication. The resolving merge commit is 69df5a9a.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Fixed in merged PR #609 (merge commit 69df5a9a): whoami now reports logged-out or expired credentials without opening an authorization page.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #609 (merge commit 69df5a9a): `charmcraft whoami` no longer attempts automatic login when authentication is missing or expired.
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.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#609 (confidence 100%)

    Merged fix for disabling automatic login in the whoami command, merged in commit 69df5a9a.

Related issues

Issue Project State Summary Similarity
#609 store: handle store errors in whoami command (CRAFT-701) charmcraft merged Merged in canonical/charmcraft#609 via 3d7474b1 (merge 69df5a9a), adding allow_login so whoami reports logged-out and expired-credential errors without automatic login.
71%
#759 charmcraft login produces an error charmcraft closed Closed as superseded by #833, which improved the double-login error and recommended `charmcraft logout`; the follow-up was resolved by merged PR #916.
70%