-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Change authentication to apples new SRP6a #49
Change authentication to apples new SRP6a #49
Conversation
This works for me very well, so i hope that we can finish this task as soon as possible. |
I'm getting ('Invalid authentication token.', ICloudPyAPIResponseException('Missing apple_id field')) when trying this. |
Tried all that, still same error. It looks like the code is trying to retrieve a session token, but is providing a null dsWebAuthToken. Hence the error. |
This seems to be because session_data does not contain session_token or trust_token. Instead, it contains 'scnt' and 'client_id' and that's it. |
In the original fastlane solution, they reference X-Apple-HC / Challenge headers. I am not seeing that in this solution. Could that be related? |
Ok figured it out. Have to use actual password, not app-specific password. Works now. |
Can this be merged so the downstream iCloud-docker is fixed too? |
It looks like Apple hasn't completely moved to this authentication method yet (e.g. working fine for me without these changes). Is there any way to detect if SRP6a is required for a given apple account? If not, we can have this as a second method if the default (legacy?) authentication fails. |
Hello there,
as mentioned here, the authentication has changed. This was solved in the origin repository pyicloud.
These fixes solve the authentication problem and are a slightly modified version of the mentioned solution.