Repository navigation
Concept: Handle pushed 2FA codes when Apple omits "au" - #60
Draft
mattaltgear wants to merge 2 commits into
Draft
mattaltgear wants to merge 2 commits into
mattaltgear wants to merge 2 commits into
Conversation
Apple's GSA endpoint may now respond with status hsc 409 and no "au" field, meaning it already pushed a code to trusted devices. Treat this like trustedDeviceSecondaryAuth, but prompt for the code without requesting another, and fail instead of re-prompting if Apple asks again. Based on SideSign: SideStore/SideSign#5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves conflict with sendGSARequest refactor in requestTrustedDeviceTwoFactorCode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Context
Since around October 12, Apple's GrandSlam servers have been rejecting sign-ins from anisette-v3-server-based tools with -80045 (Dadoum/anisette-v3-server#61). The workaround is to send Android client info (see the companion AltStore PR). With that in place, Apple can also answer the
completestep with statushsc409 and noaufield, meaning it has already pushed a 2FA code to trusted devices.AltSign only looks at
au, so it falls through to the no-2FA path and fails.Changes
auis missing andStatus["hsc"]is 409, treat it liketrustedDeviceSecondaryAuth, but prompt for the code without requesting another one.requiresTwoFactorAuthenticationinstead of prompting in a loop.notarizedbranch and adapts the change to thesendGSARequestrefactor.Based on SideStore/SideSign#5.
Testing
Built into AltStore v2.3 with the companion AltStore change, installed on an iPhone Air, and signed in with a remote anisette server. Sign-in succeeded. The merged version (after
notarized) has been built but not re-tested on device.