Skip to content

[TOL-2484] Add whoami to cli - #40

Merged
delwaterman merged 3 commits into
mainfrom
delwaterman/TOL-2484/auth-whoam-i
Aug 20, 2026
Merged

[TOL-2484] Add whoami to cli#40
delwaterman merged 3 commits into
mainfrom
delwaterman/TOL-2484/auth-whoam-i

Conversation

@delwaterman

@delwaterman delwaterman commented Aug 20, 2026

Copy link
Copy Markdown
Contributor
  • Update auth status to use /whoami route on auth server
❯ go run --tags=dev ./cmd/tollbit auth status
Agent:          anonymous
User agent:
Token:          valid (expires 2026-08-20T14:55:10Z)
On behalf:
  User:         [REDACTED]@tollbit.com
  Organization:  [REDACTED] test org
  Source:       consent
  User ID:      ky6peaw9fdzipil6uspecvqu
  Org ID:       so_ecy0h7nn7m2zc35m83ufqf4x
Auto-refresh:   enabled
Refresh:        present (expires 2026-09-19T13:55:10.994424171Z)

❯ go run --tags=dev ./cmd/tollbit auth status --json
{
  "auto_refresh": true,
  "identity": {
    "name": "anonymous",
    "user_agent": ""
  },
  "pending_authorization": {
    "pending": false
  },
  "refresh_token": {
    "present": true,
    "expires_at": "2026-09-19T13:55:10.994424171Z"
  },
  "token": {
    "configured": true,
    "valid": true,
    "subject": "anonymous",
    "expires_at": "2026-08-20T14:55:10Z",
    "obo": {
      "source": "consent",
      "user": "ky6peaw9fdzipil6uspecvqu",
      "org": "so_ecy0h7nn7m2zc35m83ufqf4x",
      "primary_email": " [REDACTED]@tollbit.com",
      "organization_name": "[REDACTED] test org"
    }
  }
}
seth meyers GIF by Late Night with Seth Meyers

@delwaterman
delwaterman merged commit 12208ab into main Aug 20, 2026
3 checks passed
@delwaterman
delwaterman deleted the delwaterman/TOL-2484/auth-whoam-i branch August 20, 2026 17:14
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