picklepete / pyicloud

A Python + iCloud wrapper to access iPhone and Calendar data.
MIT License
2.44k stars 437 forks source link

No support for Security Keys for Apple ID #426

Open RichieB2B opened 1 year ago

RichieB2B commented 1 year ago

The problem

After enabling Security Keys for my Apple ID, pyiCloud says:

Two-step authentication required. 
Please enter validation code
(string) -->

Like with 2FA but the pop-up on my Apple device only says:

Apple ID Sign-In
Your Apple ID "****@******.com" is being used to sign in to your account.

I get two options to respond:

Ok
That Wasn't Me

But selecting Ok does not give a 2FA code.

Environment

Additional information

It looks like this is caused by the use of the fake web-login method pyiCloud uses. Instead App-Specific passwords should be used like mentioned in #349

johannes-mathes commented 1 year ago

Think the use of app specific passwords won't work. The whole approach of this project is to use the browser-based API from iCloud.com (via reverse-engineering). I'm currently trying to reverse-engineer the Webauthn / FIDO solution. Unfortunately I currently get a 400 from idmsa.apple.com :|