gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
571 stars 55 forks source link

Failure to login (after Apple updated their side to SRP ?) #379

Closed crazyelectron-io closed 2 weeks ago

crazyelectron-io commented 2 weeks ago

After installing the latest iCloud v3 integration, entering the iCloud credentials fails with the message Login Error, Other Error or iCloud is not Available and the HA debug log shows:

DEBUG (MainThread) [custom_components.icloud3] [config_flow.:2242] CONFIG   icloud_account (login_icloud_account) > UserInput-{'data_source_icloud': ['famshr'], 'username': '**REDACTED**', 'password': '**REDACTED**, 'url_suffix_china': False, 'data_source_mobapp': ['mobapp'], 'endpoint_suffix': 'None', 'data_source': 'famshr, mobapp'}, Errors-None
DEBUG (MainThread) [custom_components.icloud3] [config_flow.:2488] CONFIG   Logging into iCloud Acct > UserInput-{'data_source_icloud': ['famshr'], 'username': '**REDACTED**', 'password': '**REDACTED**', 'url_suffix_china': False, 'data_source_mobapp': ['mobapp'], 'endpoint_suffix': 'None', 'data_source': 'famshr, mobapp'}, Errors-{}, Step-icloud_account, CalledFrom-icloud_account
DEBUG (MainThread) [custom_components.icloud3] [config_flow.:2527] CONFIG   Configure Settings > Logging into iCloud Account,
                                                • iCloud Account Currently Used >
                                                • New iCloud Account > **REDACTED**
DEBUG (SyncWorker_6) [custom_components.icloud3] [pyicloud_ic3:0536] CONFIG ❗Initialize PyiCloud Service, establish iCloud Location Services connection
DEBUG (SyncWorker_6) [custom_components.icloud3] [pyicloud_ic3:0927] CONFIG ❗Read Cookies from /config/.storage/icloud/**EXAMPLETLD**
DEBUG (SyncWorker_6) [custom_components.icloud3] [pyicloud_ic3:0494] CONFIG ❗AUTHENTICATING iCloud Account Access,  (**REDACTED**), config
DEBUG (SyncWorker_6) [custom_components.icloud3] [pyicloud_ic3:0618] CONFIG ❗Authenticating account  (**REDACTED**) with token
DEBUG (SyncWorker_6) [custom_components.icloud3] [pyicloud_ic3:0737] CONFIG ❗PyiCloudAPIResponseException.authenticate_with_password > Password is not valid, Error-Could not connect to iCloud Location Servers (Error Code 503), 2fa Needed-False
ERROR (MainThread) [icloud3-cf] Error logging into iCloud service:
DEBUG (MainThread) [custom_components.icloud3] [config_flow.:4375] CONFIG   Show Form-icloud_account, Errors-{'base': 'icloud_acct_login_error_other'}
DEBUG (MainThread) [custom_components.icloud3] [start_ic3...:0610] CONFIG   Checking Mobile App Integration > Loaded, Devices-**REDACTED** iPhone
DEBUG (MainThread) [custom_components.icloud3] [config_flow.:4375] CONFIG   Show Form-icloud_account, Errors-{'base': 'icloud_acct_login_error_other'}
DEBUG (MainThread) [custom_components.icloud3] [start_ic3...:0610] CONFIG   Checking Mobile App Integration > Loaded, Devices-**REDACTED** iPhone

There are reports of PyiCloud not supporting the new SRP-6a protocol now introduced by Apple, causing this issue.

I just wanted to report it here (there is already an issue opened over at the PyiCloud repo) to make everyone aware.

gcobb321 commented 2 weeks ago

Known problem. See issue

crazyelectron-io commented 2 weeks ago

Duplicate of #341.