mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #270] Auth: Validate credentials at login time #87
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rudrankriyam on GitHub (Jan 28, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/270
Problem
The
auth logincommand currently validates only the PEM format and file permissions of the private key. It does not verify that the credentials actually work with the App Store Connect API. Users only discover invalid credentials when they attempt their first API call, which leads to a poor developer experience.Common failure modes that go undetected at login:
Affected Code
cmd/auth.go- The login command and credential storage logicinternal/auth/keychain.go:98-108- Private key loading and validationinternal/asc/client_http.go:44-63- JWT generation (this logic should be testable standalone)Proposed Solution
Implementation approach:
--skip-validationflag for users who want to store credentials without network accessAcceptance Criteria
auth loginvalidates that JWT generation succeeds before storing credentials--skip-validationflag to bypass validation when needed@rudrankriyam commented on GitHub (Jan 28, 2026):
Closing per request. Reopen if any auth issues remain.