-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to login with 2FA #30
Comments
Experiencing the same thing, also tried using --auth-code with code sent through SMS/device |
Could you try logging in with that account on https://appleid.apple.com and see if you get any unusual behavior? |
No unusual behaviour, even tried to disable 2FA from appleid.apple.com. Didn't find any options to do so, do you know if it's possible to disable 2FA? After executing download command from ipatool, there is 2FA prompt on both my phone & laptop (are you accessing from xx city?, and show 6-digit code). Tried entering 6-digit code with --auth-code, but it triggers the 2FA flow again. |
no unusual behavior, logging in sends 2FA code to linked devices and requires you to type the code to continue logging.. |
Experiencing the same thing on an M1 mac mini |
I think I figured out what the issue is. Could you test release v1.0.7 and let me know if it resolves the issue for you? |
Hello, i have the same error when i try to login. I tried with version 1.0.7, same thing. |
No luck. It's the exact same issue.. |
I just saw the commit. |
Can also confirm that 1.0.7 did not fix the issue. What xBiei said seems like it would work, but I understand it may be hard to implement. |
I'm debugging the issue right now, I'll see what I can do. |
Using an app-specific password does not work either, it does not ping your device to enter 2FA though. |
yeah app-specific passwords doesn't need 2FA to work because you can't make one without authenticating first. |
ok so after digging up trying to find the issue, This is the error: Also, I noticed that to send the request to apple you need to add guid, which is the MAC address of en0. That's what I can do today I'm so tired of blowing my mind because I never used swift but willing to... |
The tool does already wait for 2FA input before proceeding, but it was receiving an error from the authentication endpoint before it reaches that point. It’s the error that @xBiei mentioned: |
M1 Mac Mini, latest macOS Monterey (12.0.1) |
yeah, the tool expects one of those guys: ipatool/Source/Store/StoreResponse.swift Lines 30 to 40 in f3a5409
but it seems like it's getting a different error so it'll just give you unknownError. The weird thing is that it's not getting an error, it's getting a message.. I tried printing some text if an error has occurred here ipatool/Source/Store/StoreResponse.swift Lines 59 to 60 in f3a5409
but it's not printing anything. instead, it's getting a message which is MZFinance.BadLogin.Configurator_message I guess it's about something that isn't supported anymore by the API or whatever the response is coming from..
Hackintosh (Model: MacBookPro15,4) on macOS Monterey (12.0.1) |
that worked for me with version 1.07. |
Confirming, so for example: |
It doesn't works for me |
How to add the code and its keep sending it to me everytime I try to sign in ? . Should I add the old code ? |
as said above, the first time is just to get the auth code to one of your devices..
|
Have you by any chance tried using the |
@majd I’ve tried with the --auth-code option with no luck :/ |
Once it works the first time, you don't have to input the 2FA again (until the cookies expire, which from what I've seen is a good while) Update: after dissecting the ipatool binary cookies created after a successful install, I've found the cookies expiration date is exactly 6 months after the successful login Update (again): I was wrong, the cookies do expire after 6 months, but ipatool hit me with the verification code issue again (24 hours after applying the fix) I guess this fix is really temporary FINAL UPDATE: I usually keep the IPATOOL_EMAIL & IPATOOL_PASSWORD environment variables set, so this third try I decided to leave the 6 digit auth code appended to my password indefinitely, and after 3 days now I haven’t run into any issues, so it seems this is a really effective workaround for the time being. |
This worked for me without -d option but I am getting bellow error: Your Apple ID does not have a license for this app. Download the app on an iOS device to obtain a license. How to fix this without iPhone |
this isn't an issue, it's expected. You need to have the app purchased to your account |
@majd thanks for all of your work on this! one of my favorite tools. Once the fix is out, I’ll also apply it to my fork with unofficial iOS support |
i got error. but it ok by this way in china: |
I can confirm it works for me ✅ |
For me it exit before i get a chance to keyin my 2FA codes
|
yup, same for me, but doing this works:
|
it works for me. |
I'm trying to download an ipa like any user I guess..
but the problem is that I can't get past the authentication, my appleid has 2FA
I don't know what's the default approach here, this is the first time I try this.
anyway when I put my appleid and password, it instantly gives me unknown error..
I tried debug log but it made this even more weird.
this is a screenshot of what's happening:
The text was updated successfully, but these errors were encountered: