pyicloud icon indicating copy to clipboard operation
pyicloud copied to clipboard

Two Factor Authentication on Raspberry Pi and prompts on Apple Devices - How to Avoid?

Open bickyb opened this issue 4 years ago • 4 comments

I am trying to run pyiCloud to play a sound on my iPhone to find it using a python script. I want to do this from my raspberry pi. Ultimately I want to run it so I can ask my Amazon Echo to call the python script so that I can find my iPhone using my Amazon Echo. When I run my python script, I am presented with a "Apple ID is being used to sign in" prompt on my devices and shown an 'Don't Allow' 'Allow' set of buttons, followed by an 'Enter Verification code on your device to sign in' prompt. Is there a way to avoid these prompts?

Environment

  • pyiCloud release with the issue (pip show pyicloud):
  • Last working pyiCloud release (if known):
  • Service causing this issue:
  • Python version (python -V):
  • Operating environment (project deps/Docker/Windows/etc.): Raspian on Raspberry Pi

Traceback/Error logs


Checklist

  • [X] I've looked informations into the README.
  • [X] I've looked informations into the pyiCloud's code.
  • [X] I've looked informations in Google.

Additional information

bickyb avatar Sep 10 '20 14:09 bickyb

So far, there is NO way to avoid that.

zhiqihuang avatar Nov 20 '20 06:11 zhiqihuang

+1 to this. This library is insanely cool but having to click a dialog on my device at each run is a big detriment. Hoping to integrate this to my Project Smartframe :D

RaddedMC avatar Dec 05 '20 23:12 RaddedMC

@bickyb Have you tried this? https://github.com/picklepete/pyicloud/issues/345

KovalevArtem avatar Jul 22 '21 11:07 KovalevArtem

@KovalevArtem The possibility of being able to play the find my sound without 2FA seems awesome.
I clicked the #345 link but I don't see how you did this. Have you been able to do this? If so, can you please send me a link the code samples?

bickyb avatar Oct 02 '22 14:10 bickyb