Skip to content

Update GrandSlam authentication user agent (notarized line) - #51

Open
Calvin-Zikakis wants to merge 1 commit into
rileytestut:notarizedfrom
Calvin-Zikakis:port/authkit-user-agent-notarized
Open

Update GrandSlam authentication user agent (notarized line)#51
Calvin-Zikakis wants to merge 1 commit into
rileytestut:notarizedfrom
Calvin-Zikakis:port/authkit-user-agent-notarized

Conversation

@Calvin-Zikakis

@Calvin-Zikakis Calvin-Zikakis commented Sep 4, 2026

Copy link
Copy Markdown

Port of #47 by @BreezeDelegate onto notarized. The change is theirs, this just applies it to the other branch, and the commit keeps them as author.

marketplace and notarized have diverged and neither contains the other. #47 targets marketplace, but AltStore's classic and classic_v2.3b1 pin notarized, so AltServer and non EU AltStore builds do not get it. Without this they stay on the 2018 User-Agent.

Why it matters

Apple's GSA edge allows a fixed number of requests per connection before it starts returning 503, and the User-Agent changes that number. Six requests down one reused connection, five trials each, identical every time:

old  akd/1.0 CFNetwork/978.0.7 Darwin/18.7.0        200 200 503 503 503 503
new  AuthKit/1 (Macintosh; OS X 26.5.2) (...26.0)   200 200 200 200 503 503

Two requests on the old string, four on the new one. authenticate() sends three down a single connection, so the third one always fails, which is exactly the reported symptom: init and complete succeed, apptokens returns an HTML 503, and the plist parser reports it as NSCocoaErrorDomain 3840 "Encountered unknown tag html on line 1".

Interleaved over 100 requests each, one at a time on fresh connections:

old  100 requests, 12x 503
new  100 requests,  0x 503

Scope

This is the whole fix for the deterministic part. There is a separate baseline failure of roughly 20 to 25 percent even on a fresh connection's first request, which the User-Agent does not affect (old 15/20, new 16/20). #50 handles that by retrying 5xx on a fresh connection. The two together got a machine that had never completed sign in to 25/25.

Reported in altstoreio/AltStore#1776, #1699, #1747.

The akd/1.0 CFNetwork/978.0.7 Darwin/18.7.0 string dates from macOS 10.14.
Apple's GSA edge now allows only two requests per connection with it, and
sign in sends three, so the third always fails with an HTML 503 that surfaces
as NSCocoaErrorDomain 3840. A current AuthKit string raises that to four.

Port of rileytestut#47 by @BreezeDelegate onto the notarized branch,
which AltStore's classic branches pin.
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.

2 participants