Skip to content

Improve tiger auth status output#106

Merged
nathanjcochran merged 11 commits into
mainfrom
nathan/analytics-identify
Nov 24, 2025
Merged

Improve tiger auth status output#106
nathanjcochran merged 11 commits into
mainfrom
nathan/analytics-identify

Conversation

@nathanjcochran
Copy link
Copy Markdown
Member

@nathanjcochran nathanjcochran commented Nov 17, 2025

This PR updates the CLI to hit the new GET /public/api/v1/auth/info endpoint, which returns information about the API key being used to access the API. This is useful for a variety of reasons:

  1. tiger auth status can now hit that API endpoint to verify the validity of the API key, instead of just reporting the presence of stored credentials (which might have been revoked, or became invalid for some other reason).
  2. tiger auth status now display significantly more information in its output, such as the name and public key of the credentials, the user who issued them, which project their associated with, etc. It also now supports the -o/--output flag, which controls the output format (table, json, or yaml).
  3. tiger auth login now hits the endpoint to verify the validity of the credentials, instead of hitting some other random API endpoint.
  4. tiger auth login also uses the endpoint to get the project ID corresponding to the public and secret keys, which removes the need for the --project-id/TIGER_PROJECT_ID parameters when using the manual credentials flow (i.e. when not using the interactive OAuth login flow).
  5. tiger auth login now hits the POST /public/api/v1/analytics/identify endpoint to identify the user upon login. This associates a user ID and email address with future CLI events, making it easier to associate them with console events as well as to filter internal users out of analytics data.

Closes AGE-125
Closes AGE-153
Closes AGE-247

@nathanjcochran nathanjcochran self-assigned this Nov 17, 2025
@nathanjcochran nathanjcochran marked this pull request as ready for review November 17, 2025 22:44
Copy link
Copy Markdown
Member

@murrayju murrayju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit: disregard, was not running the backend changes.

@nathanjcochran nathanjcochran merged commit 505ac0d into main Nov 24, 2025
2 checks passed
@nathanjcochran nathanjcochran deleted the nathan/analytics-identify branch November 24, 2025 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.

3 participants