icloud3 icon indicating copy to clipboard operation
icloud3 copied to clipboard

Feature Request - Hardware keys support

Open scrome1337 opened this issue 1 year ago • 15 comments

Hi, i'm getting this repair message everytime i restart my HA instance telling me to update my login information. CleanShot 2024-07-13 at 11 41 39@2x

However, it doesn't matter what i choose there my icloud3 integration is synced and works like a charm, but this repair message telling me that there is a error is a bit annoying.

Is there a way to only block this specific error message?

scrome1337 avatar Jul 13 '24 09:07 scrome1337

The iCloud account probably needs to be reauthenticatrd to clear that message. Select ‘Request a new code’. Apple will send the 6-digit code to your iPhone, enter it, submit and that should take care of it.

gcobb321 avatar Jul 13 '24 12:07 gcobb321

I would love to that, probably requested that code 100 times now. All apple does in this situation is sending a information to my phone/mac that a new device has been login and i can click on "Ok" or "This wasn't me". So i've never ever recieved a code from clicking on "Request a new code"...

I mean the device tracking with icloud3 works fine... it's just this message which keeps coming up since i have no code to type in

scrome1337 avatar Jul 13 '24 19:07 scrome1337

Are you still having this issue with v3.0.5.5? Or should it be Closed?

gcobb321 avatar Jul 29 '24 20:07 gcobb321

just updated to v3.0.5.6, getting the same error... still can't request the code

image

scrome1337 avatar Jul 29 '24 20:07 scrome1337

Apple is still reporting that a 2fa code is needed and it is getting picked up by iCloud3.

Are you using a hardware key?

gcobb321 avatar Jul 29 '24 20:07 gcobb321

I am using a hardware key, yes.

scrome1337 avatar Jul 29 '24 20:07 scrome1337

Ahh. iCloud3 does not support hardware keys yet. I believe the official HA iCloud app does and I will be cloning that code on the v3.1 update if that is true. I'll reopen and let you know when I am testing that function and give you a preview to see if it works for you.

gcobb321 avatar Jul 29 '24 20:07 gcobb321

ty! happy to hear it

scrome1337 avatar Jul 29 '24 20:07 scrome1337

CleanShot 2024-11-10 at 18 29 04@2x

After updating to the newest version of icloud3 i keep getting the same error but this time i can't dismiss it.... Are you still planing to support hardware keys?

scrome1337 avatar Nov 10 '24 17:11 scrome1337

I have bought 3 Yubi keys and have added d topt fields to the Apple account config parameters for them. Then Apple changed the password login protocol to use Secure Remote Passwords and that blew everything up. I rushed out a v3.1 release to fix this issue since no one could login anymore. There were also lots of code changes to support multiple Apple accounts that now seems to be settling down.

When I get back from a 3-week trip, I will be back on it.

gcobb321 avatar Nov 10 '24 20:11 gcobb321

Hi, maybe you want to take a look at this again, thank you.

scrome1337 avatar Jan 15 '25 13:01 scrome1337

I do now that things in iCloud3 are settling down and most of the issues I know about have been dealt with. I’ll send you the code when it’s ready to help check it out.

gcobb321 avatar Jan 15 '25 13:01 gcobb321

If you need more beta testers, I’m also using hardware keys.

MarcPot avatar Feb 24 '25 17:02 MarcPot

I did a deep dive into this a couple off weeks ago and got nowhere. Apple does not provide a hook to use this but I’ll get back into it when I can. Decided the docs were severely out of date and I was spending a bunch of time answering the same questions. Then a bug or two cropped up, etc. I’ll keep you posted.

gcobb321 avatar Feb 26 '25 20:02 gcobb321

@MarcPot @scrome1337 I wanted to let yu know that there is some activity on supporting FIDO2 Hardware Keys on the primary PyiCloud site. PyiCloud is the code for supporting Apple account data access. I am following thae progress and will dive into it when it is ready and I have time.

Gary

gcobb321 avatar May 31 '25 17:05 gcobb321