Skip to content

chore(cli): auth logout should mention the stored campus.audit key #58

Closed

Description

@ngjunsiang

Context

The campus.audit API key (#54, #55) rides the same credential store as
the OAuth tokens, but under its own name — it is a separate credential with
a separate lifetime (no refresh flow; it is cleared by campus audit logout or replaced by a new campus audit login).

campus auth logout clears the OAuth tokens and reports "Logged out
successfully." It says nothing about the audit key, which is still sitting
in the store. A user who signs out expecting every stored credential to be
gone is left with a live API key they did not know about.

Proposed fix

When a campus.audit key is still stored, campus auth logout prints a
one-line note naming it and the command that clears it:

Note: the stored campus.audit API key is unchanged; run 'campus audit
logout' to clear it.

No note when no audit key is stored, and an unreadable credential store
must not break the logout itself.

Acceptance

  • campus auth logout with a stored audit key prints the note naming
    campus audit logout.
  • campus auth logout without a stored audit key prints no note.
  • A credential store that raises on read does not fail the logout.

Activity

  1. added
    choreSmall task: within 200k tokens, single-PR scope, one service, no semver bump (even patch)
    on Oct 20, 2026
  2. ngjunsiang commented on Oct 20, 2026

    @ngjunsiang
    ContributorAuthor

    Fixed by 12b62eb, merged to main via PR #55 (campus.audit command group, #54). Verified: full suite green (293 tests, Python 3.11–3.14 CI), ruff clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreSmall task: within 200k tokens, single-PR scope, one service, no semver bump (even patch)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions