Skip to content

Gateway: onebrain gateway tokens list|revoke #406

Description

@kengio

PR #403's AuthStore already implements the mechanism — revoke_token (single token) and family-wide revocation (used by refresh reuse detection and authorization-code replay). What is missing is the operator UX: there is no way to see which clients hold live tokens, or to revoke one, without editing ~/.onebrain/gateway/tokens.json by hand.

Proposed:

  • onebrain gateway tokens list — client_id, kind, issued/expires, family, revoked status. Never print the token value itself (only a short prefix or a stable id).
  • onebrain gateway tokens revoke <id> and --client <client_id> / --family <family> for bulk.
  • onebrain gateway clients list|remove is the natural sibling.

🤖 Generated with Claude Code

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions