ipatool icon indicating copy to clipboard operation
ipatool copied to clipboard

NO 2FA is coming..

Open 0wwafa opened this issue 5 months ago • 11 comments

What happened?

I tried:

bin/ipatool-2.2.0-linux-amd64 auth login --verbose -e 'info@**** -p '*****'

INF enter 2FA code:

but no code arrives on the phone.

Version

latest released version (from release) 2.2.0

Relevant log output

The log just shows the username and password I used.

0wwafa avatar Jul 11 '25 15:07 0wwafa

This tends to happen when the used credentials are invalid. You also need to make sure that you are not using an app-specific password. Try to get a 2FA code from your Apple Account if possible: https://github.com/majd/ipatool/wiki/FAQ#why-am-i-being-prompted-for-a-2fa-code.

majd avatar Jul 13 '25 09:07 majd

This tends to happen when the used credentials are invalid. You also need to make sure that you are not using an app-specific password. Try to get a 2FA code from your Apple Account if possible: https://github.com/majd/ipatool/wiki/FAQ#why-am-i-being-prompted-for-a-2fa-code.

The credentials (user-pass) were valid! @majd why did you close this?

0wwafa avatar Jul 19 '25 09:07 0wwafa

@majd I have the exact same problem. The first time i got the 2fa code which I entered but after that nothing ever happened again. No error or confirmation. The login process has been running since then with no result. I tried again and now there is no 2fa at all.

credentials are valid (it worked first time to the step where I get 2fa)

I think this is a bug and this issue should be reopened

binnichtaktiv avatar Jul 21 '25 08:07 binnichtaktiv

I found the problem: ipatool fails to log in and download because it relies on the GNOME Keyring, which requires a GUI interaction to unlock. When using sudo over SSH the process runs as root in a headless environment preventing ipatool from accessing the users keyring even with the --keychain-passphrase flag. That leads to "Cannot get secret of a locked object" errors. Not sure what I can do now...

binnichtaktiv avatar Jul 21 '25 08:07 binnichtaktiv

Same issue, no 2FA code being sent, I have tried with 2 apple accounts so far, same thing:

ipatool auth login --verbose --email m***@*** --password ***
9:39PM DBG logging in authCode=<nil> email=m***@*** password=***
9:39PM INF enter 2FA code:

I am on a mac btw if it's relevant

max-octron avatar Aug 06 '25 11:08 max-octron

same issue

makovez avatar Aug 14 '25 09:08 makovez

for me the case was indeed incorrect password. I had too many phones with various users and i mixed them up

Sim-sung avatar Aug 14 '25 14:08 Sim-sung

Same issue here.

kabutz avatar Aug 17 '25 11:08 kabutz

same issue on Mac it asks for 2FA but the 2FA never comes through

GeneralCan avatar Sep 12 '25 16:09 GeneralCan

Same issue here, on Mac.

matheusamazonas avatar Oct 23 '25 07:10 matheusamazonas

have the same problem

r4ptus avatar Nov 27 '25 16:11 r4ptus