Skip to content
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

Apple ID Verification Code process broken #324

Open
polskikrol opened this issue Jul 31, 2024 · 13 comments
Open

Apple ID Verification Code process broken #324

polskikrol opened this issue Jul 31, 2024 · 13 comments

Comments

@polskikrol
Copy link

ICLOUD3 v3.0.5.6 on HA 2024.7.4 (docker)

After the latest iCloud3 update I cannot confirm the Apple ID verification code. I attempt to input it via the iCloud3 menu, but when I click submit on the code entry page, it kicks me out to the previous menu screen without sending the code nor confirming its acceptance. Tried with Brave and Firefox browsers. Tried the submit menu button and simply hitting enter.

@gcobb321
Copy link
Owner

The HA 2024.7.4 caused a lot of problems for iCloud3 v3.0.5.6

iCloud3 v3.0.5.7 appears to be working under HA 2024.7.4/HAOS 12.4

The zip file below contains an update to iCloud3 v3. I have not released it yet but would like you to try it to make sure there are no other issues I need to look at. Let me know if it now works. TThanks.

Gary

Unzip icloud3 v3.0.5.7 into the config/custom_components/icloud3 directory and restart HA.

icloud3 v3.0.5.7.zip

@polskikrol
Copy link
Author

Still broken. Here are the screens I cycle through. I request a new Apple ID code, and click submit, and just takes me back to the previous menu.

Screenshot 2024-07-31 at 10 31 44 Screenshot 2024-07-31 at 10 31 53

@gcobb321
Copy link
Owner

Are you using a hardware key? Like Yubikey? if so, iCloud3 does not support hardware keys. I'll be looking at that on the next update.

@polskikrol
Copy link
Author

I am not... standard iPhone setup. Everything worked fine for months, and I was able to re-auth when needed. Ran updates today and broken.

@gcobb321
Copy link
Owner

Go to the iCloud Account & Mobile App screen on the Menu and make sure you are signed into your iCloud account. Your account will show on the LOG OUT... line at the bottom.

image

@polskikrol
Copy link
Author

Dug into this a bit deeper. Somehow my account was locked for security purposes? No idea how that happened. Issue resolved now.

@gcobb321
Copy link
Owner

I don’t exactly know how the account got locked. Sometimes after a number of login errors, Apple will lock it. Apple sets a’ lock’ flag on the account and iCloud3 reports it but, if locked, it does not get info back to iCloud3.

@polskikrol
Copy link
Author

polskikrol commented Aug 1, 2024 via email

@gcobb321
Copy link
Owner

gcobb321 commented Aug 5, 2024

@polskikrol Changes have been made on the the Enter/Request Apple Account Verification Code screen in the next version, v3.1, to support multiple Apple Accounts. It shows if an account needing authentication is not logged in. A Login to Apple Account option has been added to the Action if it is needed.

@barrilgroup
Copy link

Hey Folks

Are you done with receiving the constant verification(2FA) request popping up on your Apple Devices and having to insert the verification code into HA to keepicloud3 working?
I have found this workaround from Apple, to create an APP password.
This way you can log in once to iCloud3 and forget about it and no more annoying Verification Code requests on other Apple Devices connected to your iCloud.

Have Fun, loving the iCloud3, thanks @gcobb321

Renato

@gcobb321
Copy link
Owner

gcobb321 commented Aug 13, 2024

@barrilgroup On the iCloud3 Configure Settings > Enter/Request Verification Code screen, When you request a new verification code, the current token/password and session cookies are deleted. iCloud3 then refreshes the iCloud data which causes a verification code request. If you enter the app specific code, is it accepted or do you get an invalid password error?

I have been digging into this to see how it might work without success. So far, it keeps coming up with an invalid code message. There have been some in Australia that have had a partial success with the HA Apple integration using the an app specific password and I’m wondering if it depends on the Apple server location. I’m in the US. Where are you?

@barrilgroup
Copy link

barrilgroup commented Aug 13, 2024 via email

@raptile
Copy link

raptile commented Aug 27, 2024

I am running v3.0.5.7 but all of a sudden i am logged out and i keep getting the verification code and am not able to insert it.
image

I insert the code here:
image

Then i select this:
image

Then i get this screen:
image

Then i get this screen again:
image

But no code comes.
Not even when i select the option to get one.

Then when i retry it all...
It indicates the code is incorrect while i get a mail that i am logged in.
image

So i restarted HA and had to do it again and this time it worked.

So it looks like u need to retry it a couple of times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants