-
Notifications
You must be signed in to change notification settings - Fork 652
Open
Labels
Description
Overview
Around version 1.29.x or so, one of my accounts stopped working while another account still worked. The bad account credentials did not change and icloudpd began dumping a JSON output that I had not seen before on previous authentication problems. This persists even with the latest version, 1.32.1.
Steps to Reproduce
- Running Ubuntu 20.04.06, command line
sudo icloudpd -u [email protected] -p PASSWORD -d "<DIRECTORY WITH A SPACE>" --cookie-directory /cookie/directory/with/no/spaces --set-exif-datetime --auto-delete
Expected Behavior
I expected the app to begin downloading photos using the arguments I've assigned, as it has done in the past.
Actual Behavior
It produces this in the console:
2025-09-01 08:56:12 INFO Processing user: user@email
2025-09-01 08:56:12 DEBUG Authenticating...
iCloud Password for user@email:
2025-09-01 08:56:19 INFO Invalid email/password combination.
2025-09-01 08:56:19 DEBUG {
"request": {
"method": "POST",
"url": "https://idmsa.apple.com/appleauth/auth/signin/init",
"headers": {
"Origin": "https://idmsa.apple.com",
"Referer": "https://idmsa.apple.com/",
"Content-Type": "application/json",
"X-Apple-OAuth-Client-Id": "OBFUSCATED-810530919",
"X-Apple-OAuth-Client-Type": "OBFUSCATED-1961643734",
"X-Apple-OAuth-Redirect-URI": "OBFUSCATED-1866116011",
"X-Apple-OAuth-Require-Grant-Code": "OBFUSCATED-4261170317",
"X-Apple-OAuth-Response-Mode": "OBFUSCATED-1578278625",
"X-Apple-OAuth-Response-Type": "OBFUSCATED-1997877400",
"X-Apple-OAuth-State": "OBFUSCATED-1322006840",
"X-Apple-Widget-Key": "OBFUSCATED-810530919",
"scnt": "OBFUSCATED-1080461492",
"X-Apple-ID-Session-Id": "OBFUSCATED-1939794523"
},
"cookies": {
"dslang": "US-EN",
"site": "USA",
"aasp": "OBFUSCATED-1939794523"
},
"content": {
"a": "OBFUSCATED-2665417089",
"accountName": "OBFUSCATED-2149657519",
"protocols": [
"s2k",
"s2k_fo"
]
}
},
"response": {
"status_code": 200,
"headers": {
"Content-Type": "application/json;charset=UTF-8",
"X-Apple-I-Request-ID": "OBFUSCATED-2888085107",
"scnt": "OBFUSCATED-450725492"
},
"cookies": {
"dslang": "US-EN",
"site": "USA"
}
}
}
2025-09-01 08:56:19 DEBUG {
"request": {
"method": "POST",
"url": "https://idmsa.apple.com/appleauth/auth/signin/complete?isRememberMeEnabled=true",
"headers": {
"Origin": "https://idmsa.apple.com",
"Referer": "https://idmsa.apple.com/",
"Content-Type": "application/json",
"X-Apple-OAuth-Client-Id": "OBFUSCATED-810530919",
"X-Apple-OAuth-Client-Type": "OBFUSCATED-1961643734",
"X-Apple-OAuth-Redirect-URI": "OBFUSCATED-1866116011",
"X-Apple-OAuth-Require-Grant-Code": "OBFUSCATED-4261170317",
"X-Apple-OAuth-Response-Mode": "OBFUSCATED-1578278625",
"X-Apple-OAuth-Response-Type": "OBFUSCATED-1997877400",
"X-Apple-OAuth-State": "OBFUSCATED-1322006840",
"X-Apple-Widget-Key": "OBFUSCATED-810530919",
"scnt": "OBFUSCATED-1080461492",
"X-Apple-ID-Session-Id": "OBFUSCATED-1939794523"
},
"cookies": {
"dslang": "US-EN",
"site": "USA",
"aasp": "OBFUSCATED-1939794523"
},
"content": {
"accountName": "OBFUSCATED-2149657519",
"c": "OBFUSCATED-1942856417",
"m1": "OBFUSCATED-3016782708",
"m2": "OBFUSCATED-3663754350",
"rememberMe": true,
"trustTokens": []
}
},
"response": {
"status_code": 401,
"headers": {
"Content-Type": "application/json;charset=UTF-8",
"X-Apple-I-Request-ID": "OBFUSCATED-218088663",
"scnt": "OBFUSCATED-1875386351"
},
"cookies": {
"dslang": "US-EN",
"site": "USA"
}
}
}