-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
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
ICloud integration gives invalid auth w/ app-specific pw #53926
Comments
icloud documentation |
Hey there @Quentame, @nzapponi, mind taking a look at this issue as it has been labeled with an integration ( |
same here, app password doesn't work. |
same for me |
same: these occur in logs |
Bump! |
i am facing the same issue. Any update on same |
i am waiting for this issue to get resolve ASAP because my presence detection automation is completely blocked because of that issue .Please respond if there is any update regarding this issue. Thanks in advance. |
same here |
I'm experiencing the same running 2021.8.8. Both with my actual icloud pw as well as app specific pw. I've also tried with 2 separate icloud accounts. Additionally i've spun up multiple VM's to try and isolate all other factors and have even downgraded Core to 2021.7.x which is where I had it running last but even that doesn't seem to work. My assumption was the the version of Core was potentially the issue but now I'm wondering if the integration itself has a 'version' that isn't manageable within the context of HA itself and potentially that is the issue. I've spent quite a bit of time trying to isolate this and can't figure out what is different... The specific behavior for me is after entering my un/pw on the below screen, I get the Apple prompt immediately asking to allow a login. I proceed to the 6 digit code dialog but the dialog below just spins continuously for a very long time and i never get prompted to enter the code. |
I have the same experience as @pauly7300
|
Same issue on 2021.9.1 Error in logs: Error logging into iCloud service: ('Invalid authentication token.', PyiCloudAPIResponseException('Missing apple_id field')) |
Same issue, same error, same logs here on latest HAOS with latest Core, Supervisor versions. Can I help somehow to fix it? |
Same issue here with app-specific password... I played a little bit with the underlying code samples of pyiCloud (https://github.com/picklepete/pyicloud) and the sample code showed the same error when using my AppleID / app-specific password... raising a ticket there and hoping that the developer will react. |
Thanks for the update |
I'm experiencing the same running 2021.8.8. email address and password are accepted. But verification code is accepted and constantly rejected by the iCloud integration app. Failed to verify verification code: (401) |
I have the same issue too... |
Is there going to be a resolution for this? It seems as though this hasn't been noticed by a developer |
I did more digging with the underlying pyicloud library (see comment in my issue there) - seems like pyicloud is emulating to be a web browser and not using any official API. Apparently, Apple changed the login flow or rejects app-specific passwords completely now - in any case the library no longer receives the necessary login tokens to work. |
bad news.. |
As said by @dsfaller in the below issue, Apple changed the login flow or rejects app-specific passwords completely now: home-assistant/core#53926 (comment)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
still an issue |
So I was using the legacy system with account password to get in. Latest update forced app specific password. Yay I thought hadn’t even kept up to date that this was even an option. And suddenly I’m here. |
Third base. I'm a bit confused why an integration that hasn't worked in 3 years is kept in HomeAssistant year after year for new folks to step in when trying to connect to iCloud |
It used to work for me (with the monthly deletion of iCloud folder and then again with the adding integration method), but now it doesn't. Of course, I may be doing something wrong, because the documentation is not fixed, there is no mention of an app specific password |
Followed docs, still ended up here with App specific password: Error logging into iCloud service: ('Invalid authentication token.', PyiCloudAPIResponseException('Missing apple_id field')) Most recent Home Assistant (2024.7.3) Also deleted .storage/icloud - didn´t help. |
@jacky-coke switch to HACS icloud integration. This one is broken for a long time now. |
Still Invalid authentication token |
This issue was resolved before by removing app-specific passwords and using account password. This is now once again asking for app specific password and is returning the error. |
Using account password instead of requested "one-time password" goes through to 2fa but once 2fa code is submitted it shows "Invalid flow specified" error. But the result is working integration. |
I don't seem to get this working either. Error logging into iCloud service: ('Invalid authentication token.', PyiCloudAPIResponseException('Missing apple_id field')) Core |
same here, not working. |
Same issue here, should be removed after all this time from HA. |
As @xhighway pointed out, if you ignore that it is asking for an app-specific password and use your iCloud password instead you will be prompted to complete 2fa. Once that's done the integration appears to work as expected. So the confusing part is that the dialog while setting up the integration asks for an app-specific password where your iCloud account password works instead. |
I would not say it works as expected. Apple will eventually timeout the HA login after some time and will reprompt you to setup again and provide 2FA since Apple sees HA as just another device logging into your Icloud. That is why app-specific passwords are needed, it is a one time setup and tells Apple it is not a machine but an app that is allowed to use your account as needed. |
I am still encountering the same issue as described in this thread. Despite using an app-specific password and multiple attempts to reinstall and log into the iCloud integration, the authentication fails. Response on login attempt: While I receive a 200 OK status code, the response still includes Full Response: {
"type": "form",
"flow_id": "myFlowID",
"handler": "icloud",
"data_schema": [
{
"type": "string",
"name": "username",
"required": true,
"default": "MyMail"
},
{
"type": "string",
"name": "password",
"required": true,
"default": "myPassword"
},
{
"type": "boolean",
"name": "with_family",
"optional": true,
"default": false
}
],
"errors": {
"password": "invalid_auth"
},
"description_placeholders": null,
"last_step": null,
"preview": null,
"step_id": "user"
} System Setup:
It appears the issue may not be with the credentials themselves, but potentially due to another restriction within the iCloud integration or API. |
I am dealing with this too. |
me too :( |
Same problem here |
#metoo |
@AlexF090 You are getting invalid_auth because the integration is prompting you for app-specific passwords (which is the correct approach) but it is actually authenticating using your actual Icloud password. Once you use your Icloud password you will be granted access until Apple times you out. So this integration's issues are:
Would be helpful if the owner of the integration @Quentame would chime in since this integration has changed under the hood a couple of times since this was posted back in 2021 with no mention in release notes or updates in the tickets. Thanks. |
I cannot authenticate through either App Password or iCloud password - even after removing the iCloud folder in .storage and restaring. Have tried all the combinations. Would appreciate any assistance you can provide - thanks @Quentame |
This integration has been broken for a long time, but right now it is doubly so, since Apple has changed their login methodology. Even iCloud3 (an external component) is struggling to get it to work again, see gcobb321/icloud3_v3#341. This is likely to be the final nail in the coffin for the built-in integration, since it relies on a python library (pyicloud) that has not been updated for a long time, and which seems completely stalled. The corresponding issue in the original library, picklepete/pyicloud#456, has not seen any feedback at all from the original maintainer. This means that even if a solution is found for this library, it is unlikely to get integrated, and thus usable for the HA iCloud integration. Sorry folks. It would have been nice if the non-working integration was actually removed from Home Assistant, but that does not seem to happen. I have pinged the integration owners @Quentame and @nzapponi repeatedly, but they seem to have abandoned the integration. I have tried pinging higher-up responsible developers (like @balloob and @frenck) to get the integration removed, or new active maintainers assigned, but to no avail. :-( My best recommendation is to move to iCloud3; it is not pretty (and right now it is also broken), but at least it is actively maintained. |
Having the same issue. Have deleted the .storage folder but to no avail. As soon as I generate a new app password and enter it, it says it is invalid and creates a new folder in .storage. My regular icloud password does not work either. I'm in a loop. I have icloud 3 but it doesn't see any devices now. |
Anybody working on this integration at all? I see a bazillion people having the exact same issue with no remedy SINCE 2021. On the other hand, I see no trace of this mentioned alternative icloud3 thing in my installation's "Add-on Store" nor is it accepting the Github repository as a valid repository to add so I would be able to download that... So, anyone from Home Assistant watching this? Caring? Why has this not been torn out of HA if it seemingly doesn't work?.... (anybody got it working? HOW?) |
@Andreaux Good question. As for iCloud3, you need to install it using HACS. See https://www.hacs.xyz/. |
frustrated with this issue. let me know if anybody ever fixes it. for now deleting it. tired pf looking at the notices. |
i'd be interested on that as well, since using the app is out of the question with other family members. |
For me the best course of action was to download the iCloud3 V3 integration
from HACS. It works infinitely better anyway.
…On Mon, Nov 18, 2024 at 12:19 PM nullx8 ***@***.***> wrote:
*So, anyone from Home Assistant watching this?* Caring? Why has this not
been torn out of HA if it seemingly doesn't work?.... (anybody got it
working? HOW?)
i'd be interested on that as well, since using the app is out of the
question with other family members.
icloud findmy is kind of mandatory.
—
Reply to this email directly, view it on GitHub
<#53926 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMDUFRVN2BVMAM4QJAGEMD2BIOR5AVCNFSM5BQIR3YKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TENBYGM3DIOBYGUZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Good tip. Thanks. I’ll check that one out. I gave up on this one a while back but am still interested in the functionality.
________________________________
From: Casey Morton ***@***.***>
Sent: Monday, November 18, 2024 9:24:18 AM
To: home-assistant/core ***@***.***>
Cc: Ryan Grace ***@***.***>; Mention ***@***.***>
Subject: Re: [home-assistant/core] ICloud integration gives invalid auth w/ app-specific pw (#53926)
For me the best course of action was to download the iCloud3 V3 integration
from HACS. It works infinitely better anyway.
On Mon, Nov 18, 2024 at 12:19 PM nullx8 ***@***.***> wrote:
*So, anyone from Home Assistant watching this?* Caring? Why has this not
been torn out of HA if it seemingly doesn't work?.... (anybody got it
working? HOW?)
i'd be interested on that as well, since using the app is out of the
question with other family members.
icloud findmy is kind of mandatory.
—
Reply to this email directly, view it on GitHub
<#53926 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMDUFRVN2BVMAM4QJAGEMD2BIOR5AVCNFSM5BQIR3YKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TENBYGM3DIOBYGUZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
—
Reply to this email directly, view it on GitHub<#53926 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACDY3FGG3HR74SN6UN3V2ZL2BIPEFAVCNFSM5BQIR3YKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TENBYGM3DMMJSGM3Q>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
So the core problem is that official integrations do not get removed when they deprecated 🧂 |
The problem
I'm attempting to setup the iCloud integration w/ an app-specific password, per the instructions here.
Upon hitting submit, I get a short spinner and then "Invalid authentication" — and I cannot proceed beyond this error to finish setting up the icloud integration. I've also tried the suggested troubleshooting step of removing the
.storage/icloud
directory, to no avail. (which is created upon attempting to setup the integration, but removing it has no affect on the issue)I have confirmed that I've entered the app-specific password correct, and attempted several different passwords I've generated on appleid.apple.com.
What is version of Home Assistant Core has the issue?
core-2021.7.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
icloud
Link to integration documentation on our website
https://www.home-assistant.io/integrations/icloud/#app-specific-passwords
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: