28 Commits
Author SHA1 Message Date
Majd Alfhaily 5dc4c8058d feat: use apple frameworks for store operations 2026-10-18 18:22:14 +02:00
Majd Alfhaily 3411d57f45 fix: improve download reliability with kbsync 2026-10-01 21:57:13 +02:00
Majd Alfhaily e258fed14a fix: bound authentication requests and retry transport failures 2026-10-01 19:54:32 +02:00
Majd Alfhaily 1ec8b3e5dc fix: preserve signed authentication requests across redirects 2026-10-01 18:40:36 +02:00
Majd Alfhaily d1845ba678 fix: improve recovery from unexpected apple authentication responses 2026-09-13 15:19:45 +02:00
Majd Alfhaily 27e8902d7e feat: add list purchases command 2026-08-29 16:21:32 +02:00
Majd Alfhaily abd86cb01a feat(auth): replace App Store login with SAP signing 2026-08-28 23:22:55 +02:00
Majd Alfhailyandhorskin ab79e429d5 fix: fall back to legacy Store authentication (#514)
* fix: fall back to legacy Store authentication

* style: satisfy lint checks

---------

Co-authored-by: horskin <pkh_horskin@photons.com.tw>
2026-08-03 09:58:15 +02:00
Vadim-B52 fd630343bc fix(auth): append trailing slash to native/fast authenticate endpoint (#507)
Apple's account bag now returns the authentication endpoint as
https://auth.itunes.apple.com/auth/v1/native/fast. That endpoint only
responds correctly when the path has a trailing slash; posting to it
without the slash makes Apple's edge return a 301/204 with an empty or
HTML body, so 'ipatool auth login' fails to parse the response and
silently dies (observed as the 'plist: unexpected hex digit' error or a
-5000 with no usable message).

Also improve http client diagnostics: when an XML response body is not a
property list, return 'unexpected response from Apple (HTTP <code>):
<snippet>' instead of the opaque plist parse error.
2026-07-05 12:41:37 +02:00
Rudra Sarkar dcddce4650 Fix 429 rate limit handling and context key type mismatch in login #480 (#481)
fix: handle 429 rate limit and context key type mismatch in login issue #480
2026-05-26 06:21:29 +02:00
Majd Alfhaily 65242569b3 Fix decoding Apple Plist envolope 2026-02-16 20:12:00 +01:00
dependabot[bot]andMajd Alfhaily f3c9076ff0 Bump golang.org/x/net from 0.23.0 to 0.33.0 (#334)
* Bump golang.org/x/net from 0.23.0 to 0.33.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix linting errors

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Majd Alfhaily <majd@alfhaily.me>
2025-01-20 00:00:00 +01:00
Max 8a23d6fadd Fix authentication (#316)
login: increment 'attempt' while following redirects

Apple has introduced some dynamic GET parameters into their
redirects, forcing us to use the main domain ( no `p71-`
and such prefixes ) to obtain those parameters.

However, when following such redirects, we shall also increment
the `attempt` parameter (something that was hard-coded before).
2024-12-07 23:56:04 +01:00
guangwu 63ee6fc6a4 Fix closing response body (#271) 2024-05-01 01:21:33 +02:00
Majd Alfhaily c8624b26d5 Update Go dependencies (#257)
* Update Go dependencies
* Replace github.com/golang/mock/gomock with go.uber.org/mock/gomock
2024-01-20 00:30:26 +01:00
Majd Alfhaily 67e557e9a7 Add golangci-lint linter (#188) 2023-05-27 21:21:13 +00:00
Majd Alfhaily 95c3aa6629 Refactor API interfaces (#185)
- Move logging to command level.
- Simplify and unify interfaces for `appstore` package.
- Move sinf replication from "Download" API to "ReplicateSinf" API.
- Handle retries and command specific logic in the command level.
- Rename "Info" API to "AccountInfo".
2023-05-27 18:48:22 +02:00
ViRb3 fbd9d74729 Disable client timeout (#157) 2023-02-18 16:31:49 +01:00
ViRb3 8d2467491e Always apply user agent (#155) 2023-02-16 21:35:06 +01:00
Majd Alfhaily 2f154ad4f9 Disable timeout for downloading files (#123) 2022-12-07 17:46:07 +00:00
Majd Alfhaily 1a71cf89b4 Unify error names 2022-12-05 18:46:02 +01:00
Majd Alfhaily 5d6e83c2e9 Pass structs as args 2022-12-05 18:46:02 +01:00
Majd Alfhaily 12db867c54 Implement appstore download logic 2022-12-05 18:46:02 +01:00
Majd Alfhaily d5c4f88533 Automatically renew credentials when needed 2022-12-05 18:46:02 +01:00
Majd Alfhaily eb42a63845 Implement appstore search and lookup logic 2022-12-05 18:46:02 +01:00
Majd Alfhaily b73de7cd88 Improve testability 2022-12-05 18:46:02 +01:00
Majd Alfhaily d913b16c55 Implement keychain 2022-12-05 18:46:02 +01:00
Majd Alfhaily 915c70dcfa Implement HTTP client 2022-12-05 18:46:02 +01:00