-
Notifications
You must be signed in to change notification settings - Fork 573
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
Two-step/two-factor authentication is required (2fa) #803
Comments
Same problem here, no 2fa code is received. |
The problem is that there is no choice of sms or on the device (and it used to be) |
How can I log in via SMS now? The device is broken and there is no way to get the code on the device |
SMS auth path was broken in 1.17.x when we did an emergency fix for Apple API changes. |
Curious how are you getting new pictures into iCloud if device is broken? Trying to understand the urgency for SMS code functionality. If you are not getting new pictures, then there is no urgent need to run |
I guess there could just be a couple hundred photos in his iCloud which he doesn't want to go through manually and has bought an android phone or something. I'd also like this feature but for a different reason. I back up 3 additional accounts, and with my phone being a trusted device for the other three accounts, SMS based MFA allows me to re-authenticate the other devices without them being present. In addition to this, it seems that Apple have reduced the cookie validity period from 90 days to 30 days, so I'm having to grab phones to re-authenticate every couple of weeks. Means I can't just sort it when I have time, but have to organise it around them. |
I make backups of all family members. And phones are not always at hand. I even extended my session via SMS (since it’s convenient). Also, one of the phones broke down, and I didn’t download all the last photos (the session ended), I had to look for a backup old phone - log into my account on it and then get a code... It’s just that you can even log into this icloud.com account via SMS without any problems - but in the application it was and stopped working :( |
It’s just strange that this was included in the program - and for some reason it was cut out. |
@ADMiNZ @boredazfcuk for scenarios of supporting multiple account, pls see if #805 makes sense |
v1.17.4 has a fix. Pls reopen the issue if something still not working |
I've just removed my cookie and re-created it, but I wasn't prompted to choose between SMS or the iDevice Popup. It just went straight to |
new logic checks for trusted devices and only offers sms option ifvthere are such devices. |
Can you be more specific? Just today I compiled the latest build for the nas server and upon authorization it immediately asks for a code - there is no choice for SMS. I would like it to be like it was before - when extending the session, you can immediately choose how to receive the code (similar to authorization on icloud.com) |
What version are you comparing behavior with? Since 1.17.0 (and before 1.17.4) MFA auth behavior is the following:
In 1.17.4 I changed the logic to the following:
"Trusted devices" request is the same we used pre 1.17.0 to get the list of SMS devices from iCloud. I tested for my account and for single iDevice on the account, it returned one devices, so I can authenticate either way (code on Apple devices or SMS). If you know how to setup different combinations of devices/trusted devices for the account, let me know - I may be able to repro your case. |
As I wrote earlier, I have this workset on a nas server. My task has stopped downloading files because the code has gone bad. I enter: (env) root@name:~# icloudpd --username '[email protected]' --password 'password' --directory /folder/iCloud What do I need to do to log in via SMS? |
I made a mistake. The second scenario worked for my old iPhone without phone number, with separate iCloud account, and with trusted phone number from my primary account. For my primary account with just one iPhone with a number, it does not provide SMS option - I assume we need to use new Apple APIs to get devices capable of SMS for such cases (I tested icloud.com and it has option for SMS for my primary account, so it is feasible). |
Yeah, I'm sure that historically it used to offer a choice of auth. When the icloud app was used to save the password into the keyring, the only option it would give you was SMS. Then when the cookie was created, it would allow you to choose from SMS or Apple MFA. If you check the docs on my project, it kinda confirms this previous behaviour: https://github.com/boredazfcuk/docker-icloudpd/blob/master/CONFIGURATION.md#multifactor-authentication
|
I think behavior of many Apple APIs changed (and we adjusted icloudpd for it with 1.17.0), because list of devices that was used to return phone number for SMS does not bring primary phone anymore. icloud.com uses different API for devices today, so the path forward I see is to implement new API for devices in icloudpd. |
Would make sense to be honest. Number/SIM cloning is fairly easy now. So much so, that SMS auth is discouraged as it is less secure than app based. We're phasing it out at work in the next couple of months. Guess Apple have already, for main authentication purposes. |
After replacing SIM cards, they do not receive incoming SMS for a day. You can also find fault with the fact that all devices linked to the account receive the code :) And if an attacker steals, say, a Macbook, with a simple password and in the notes there will be a password for the account. He can download everything easily :) This is the second authorization - you also need to know your login and password. |
I see the security concern of SMS auth at Apple as a separate from supporting it in Currently, I do not commit to invest time beyond short trial into supporting new API for SMS. |
So, I've just come to renew the cookie on a family member's device and the process went like this:
The trusted account number (my number) is the one that ends in 02. The number that ends in 01 is the phone number that is registered to the icloud account that I'm downloading photos from. It's good that I can choose either number for authentication, but surely this means that anybody with a trusted number registered to their account is going to be forced to use SMS auth as there is no option for Apple iDevice auth? |
Apple devices receive code right after password is submitted to iCloud and there is no choice to receive on iDevice or not - that is why UI asks for code received on Apple device OR choice of SMS options. |
@boredazfcuk I am lost. What auth actions/steps you can do through web and cannot do with From what I understand |
Sorry, it's me not picking up on the change of behaviour. Previously, it would ask something like:
I was expecting the same prompts. I should read things properly and not skim read. |
MFA choice is unnecessary, because you get the code anyways, that is why the choice you are given:
Another way to look:
|
Maybe a little deviating from topic, but I got a workaround for this. I was not getting the option to choose 2FA mode (sms or phone), it directly went to enter validation code step and no code was received. I requested the code by logging into icloud web, chose sms option and used that otp in the option and it worked! |
FYI I have noticed recently that I stopped receiving list of SMS devices for either of my two accounts recently. It may be a change on Apple side or maybe the some nuances of the Apple API for trusted devices we do not understand yet. |
I'm having a problem with authenticating a family member's account - mine works fine. When I enter the password, they never receive a code and it seems to go through:
However, when I look at the logs, I get the following:
|
You need to report problems into another GH project as stated |
Just digging this up again as I've noticed the behaviour where it doesn't list trusted devices again. When I attempt to reauthenticate my wife's device, I just get:
Despite her account having two trusted SMS numbers available when logging into icloud.com. I tried @SurajViitk's solution, but it did not work for me:
|
Hi, do you found a workaround for the 30 days MFA expiration cookie ? On another project https://github.com/rclone/rclone we are looking for a workaround rclone/rclone#7717 ... thanks. |
Expiry time is set by Apple so I don't think you'll have much much trying to extend it. It used to be 90-days, but they recently reduced it to 30-days. I handle it in my container using a Telegram chat bot and the |
thanks. |
@cyayon there is also a discussion #805 about adding WebUI for password/MFA. It gives an opportunity for people carrying devices with AppleID used by Where can I learn about iCloud photo support for rclone? Don't see that provider into the doc. |
Hi, thanks for your answer, I will forward on rclone thread. |
in 1.20.3 |
I've attempted to authenticate my own account using the option SMS for the number associated with my account and get this error:
Works OK if I just enter the code which pops up on my phone though. I then tested on one of my other accounts, for which my mobile number is only a trusted number for, and it doesn't actually prompt me for any authorisation info. It just just tells me I need to authenticate, then exits:
I've restarted the container after this and it's actually fine. |
I think my testing was not sufficient. I did |
another attempt with 1.20.4 |
I had a look at my code, and I was using a bit of a hack to get it to generate a cookie:
This was how I managed to get it re-authenticating without downloading anything. It would still create the directory structure, so I chucked them in the bitbucket. This is from the days before
I believe I was being MFA authenticated without having to re-enter the code as, the cookie generation code was only removing the cookie. It seems a .session file is also being created, so I'm removing that too now, and all seems OK. |
Hello. It is no longer possible to log in via SMS. Codes are not always received, but SMS messages are received instantly.
Previously, there was always a choice of how to send authorization. Is there any way to delete the authorization settings and log in again with confirmation?
The text was updated successfully, but these errors were encountered: