Repository navigation
Conversation
|
It works for users who are using icloud in Mainland China. And I keep the same style of cli option and corresponding config. |
|
Wait a moment. I will revise the corresponding document. |
|
All done, request for review. Thanks @ncw |
This fixes China mainland iCloud authentication by deriving the Origin and Referer headers from authEndpoint instead of hardcoding idmsa.apple.com. Fixes compatibility with PR rclone#8818 (China region support) and PR rclone#9209 (SRP authentication). Signed-off-by: Xiangzhe <[email protected]>
This fixes China mainland iCloud authentication by deriving the Origin and Referer headers from authEndpoint instead of hardcoding idmsa.apple.com. Fixes compatibility with PR rclone#8818 (China region support) and PR rclone#9209 (SRP authentication). Signed-off-by: Xiangzhe <[email protected]>
This fixes China mainland iCloud authentication by deriving the Origin and Referer headers from authEndpoint instead of hardcoding idmsa.apple.com. Fixes compatibility with PR #8818 (China region support) and PR #9209 (SRP authentication). Signed-off-by: Xiangzhe <[email protected]>
|
I had create a PR for fix the conflicts |
This fixes China mainland iCloud authentication by deriving the Origin and Referer headers from authEndpoint instead of hardcoding idmsa.apple.com. Fixes compatibility with PR rclone#8818 (China region support) and PR rclone#9209 (SRP authentication). Signed-off-by: Xiangzhe <[email protected]>
|
Thanks for this PR, and sorry it sat so long without a reply. There are now three PRs for China Mainland iCloud (#8257), and we're going to take #9995 forward. It detects the China domain automatically from Apple's login redirect, so no manual option is needed, and it switches every endpoint, including the OAuth redirect URI. This PR switches the endpoints by changing package globals. That would break a China remote and a global remote used in the same rclone process. So I'm going to close this one. If you have a China account, testing #9995 would be a big help. Thanks again! |
|
Thanks for explaining the reasoning. I’m glad the project will improve, regardless of which implementation is chosen. Btw, receiving substantive feedback after more than a year was a little disappointing. Timely communication would have been very much appreciated. |
What is the purpose of this change?
The purpose of this change is to officially add support for iCloud Drive accounts in Mainland China (GCBD) to rclone’s iCloud Drive backend.
Previously, rclone’s iCloud Drive integration only hardcoded URLs for global iCloud servers (e.g., https://www.icloud.com), which caused fatal HTTP 302 errors when users with Mainland China Apple IDs attempted to connect—since Mainland China iCloud relies on independent .cn-suffixed servers (e.g., https://www.icloud.com.cn).
Was the change discussed in an issue or in the forum before?
Fixes #8257
As discussed in Issue, given the maintainer’s limited environment, I followed the instruction to add a new region option for iCloud Drive and test it. This option now works for users in Mainland China, and the relevant logs are attached below.
Checklist