Update GrandSlam authentication user agent (notarized line) - #51
Open
Calvin-Zikakis wants to merge 1 commit into
Open
Update GrandSlam authentication user agent (notarized line)#51Calvin-Zikakis wants to merge 1 commit into
Calvin-Zikakis wants to merge 1 commit into
Conversation
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.
Calvin-Zikakis
force-pushed
the
port/authkit-user-agent-notarized
branch
from
September 4, 2026 06:16
77785c3 to
ec2968c
Compare
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.
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.marketplaceandnotarizedhave diverged and neither contains the other. #47 targetsmarketplace, but AltStore'sclassicandclassic_v2.3b1pinnotarized, 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:
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 asNSCocoaErrorDomain 3840 "Encountered unknown tag html on line 1".Interleaved over 100 requests each, one at a time on fresh connections:
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.