Add browser-based auth flow#20
Merged
itssimon merged 5 commits intoApr 15, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20 +/- ##
==========================================
+ Coverage 90.80% 91.26% +0.45%
==========================================
Files 12 12
Lines 1817 1934 +117
==========================================
+ Hits 1650 1765 +115
- Misses 167 169 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by cubic
Adds a browser-based auth flow to the CLI that opens the Apitally dashboard, lets the user select a team, and returns a newly created API key to save in ~/.apitally/auth.json. Aligns with DEV-103 by using the dashboard for team selection and creating a CLI-specific key, with a fallback to paste a key when running interactively.
New Features
https://app.apitally.io/cli-auth?callback_port=<port>and runs a localhost callback server to receive{ api_key }via JSON POST; includes CORS support and a 5-minute timeout.--api-keystill saves directly without opening the browser.--app-urlflag (APITALLY_APP_URL) to target other environments.Dependencies
open(launch default browser) andregex(API key validation).Written for commit a5e9206. Summary will update on new commits.