Giter Site home page Giter Site logo

Comments (10)

torarnv avatar torarnv commented on June 2, 2024

Which auth token are you referring to? App specific passwords can not be used, see #92.

from pyicloud.

nirlandau avatar nirlandau commented on June 2, 2024

I am refering to general apple token. for example, when native apps (e.g. contacts) are connecting the server, a token is passing.
the token looks likes this:
8274655121:AQAAAVAABnYqmtl1ZiI/TQ+YUIfR763S9Iy+/j0=

from pyicloud.

torarnv avatar torarnv commented on June 2, 2024

How would you retrieve this token? If you can use the token on icloud.com (set a cookie perhaps?) we can also use it.

from pyicloud.

nirlandau avatar nirlandau commented on June 2, 2024

for example, refer to https://github.com/horrorho/InflatableDonkey
you can download full icloud backup with it.
or this: https://github.com/hackappcom/iloot, which is an older version of InflatableDonkey in python (see iloot.py lines 587-607)

InflatableDonkey mentioned that using tokens (DsPrsID:mmeAuthToken) is "Preferable for consecutive runs as repeated appleId/ password authentication over short periods may trip anti-flooding/ security controls."
so it gives you an option to obtain it (--token option).

these tokens work on icloud.com.
now i want to use this token with pyicloud.

from pyicloud.

torarnv avatar torarnv commented on June 2, 2024

It seems both InflatableDonkey and iloot are using a reverse-engineered version of the CloudKit API, while we are using the APIs that the icloud.com website is using. The flow here doesn't match ours, we use a different endpoint that doesn't give us a mmeAuthToken.

these tokens work on icloud.com

Just to clarify, are you basing that on the two projects mentioned already, or have you personally interacted with the icloud.com website using something else than your username and password?

from pyicloud.

ifnull avatar ifnull commented on June 2, 2024

@torarnv does pyicloud save any token for later use or does it completely re-authenticate each time?

from pyicloud.

nirlandau avatar nirlandau commented on June 2, 2024

I am basing my answer on these two projects.
However, before iOS 9, I was able to use pyicloud with mmeAuthToken (witch I got from iloot)
has something changed?

from pyicloud.

torarnv avatar torarnv commented on June 2, 2024

@ifnull A token is saved in the cookie file

@nirlandau Unless you can use the same mmeAuthToken to log into the current icloud.com, then pyicloud will not be able to use it either. Let me know if you can get it to work using icloud.com

from pyicloud.

aress31 avatar aress31 commented on June 2, 2024

This would be a super nice feature, up vote for me!

from pyicloud.

Quentame avatar Quentame commented on June 2, 2024

It is not possible since we use iCloud.com authentication.

Same for App-specific password (see #161, #92 and #36), but we may implement 2FA (see #102).

from pyicloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.