mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 23:55:51 +03:00
[PR #133] [MERGED] Add auth config init and storage selection #314
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#314
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?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/133
Author: @rudrankriyam
Created: 1/24/2026
Status: ✅ Merged
Merged: 1/25/2026
Merged by: @rudrankriyam
Base:
main← Head:cursor/auth-config-init-issue-102📝 Commits (10+)
089fdfaAdd auth init and config-only storage.84fc38fClarify config storage behavior.a2589e2Skip empty config credentials1297fb1Support repo-local config and config defaults.b318396Merge pull request #134 from rudrankriyam/cursor/empty-config-phantom-credentials-1f39360a172Merge auth config consistency fixes and add config fallback for bypass-keychain.96864c2Add integration tests for auth config features.ceb2d77Fix auth logout to preserve non-credential config settings.919dac6Improve integration tests with error handling and auto-build.744a526Add testing standards to GO_STANDARDS.md.📊 Changes
15 files changed (+1192 additions, -73 deletions)
View changed files
📝
.gitignore(+1 -0)📝
CONTRIBUTING.md(+3 -2)📝
README.md(+38 -2)📝
cmd/analytics_helpers.go(+19 -3)📝
cmd/auth.go(+93 -4)📝
cmd/commands_test.go(+3 -0)📝
cmd/shared.go(+13 -2)📝
docs/CONTRIBUTING.md(+1 -1)📝
docs/GO_STANDARDS.md(+33 -0)📝
internal/asc/client_core.go(+99 -20)📝
internal/asc/integration_test.go(+81 -6)➕
internal/auth/integration_test.go(+366 -0)📝
internal/auth/keychain.go(+81 -7)📝
internal/config/config.go(+142 -19)📝
internal/config/config_test.go(+219 -7)📄 Description
Summary
asc auth initandasc auth init --localto generate a templateconfig.jsonin global~/.ascor repo-local./.ascasc auth login --bypass-keychain(optional--local) to explicitly store credentials inconfig.jsoninstead of keychainASC_CONFIG_PATH→ repo-local./.asc/config.json→ global~/.asc/config.json.asc/Auth + Config Behavior
~/.asc/config.json./.asc/config.json(preferred when present)ASC_CONFIG_PATHpoints to any config fileCommands
asc auth init→ writes template config to~/.asc/config.jsonasc auth init --local→ writes template config to./.asc/config.jsonasc auth login --bypass-keychain→ stores credentials in config (global)asc auth login --bypass-keychain --local→ stores credentials in repo-local configConfig Keys (config.json)
Config keys mirror env vars using snake_case:
app_idvendor_numberanalytics_vendor_numbertimeout,timeout_secondsupload_timeout,upload_timeout_secondsmax_retriesbase_delaymax_delayretry_logEnv/Config Precedence
Test Plan
make testmake lintmake build🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.