Skip to content
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

Implement single factor authentication flow on 2fa-enabled iCloud accounts #35

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cody-somerville
Copy link

This pull request introduces support for single-factor authentication on iCloud accounts with 2FA enabled which permits access to find my services without completing 2fa flow.

  1. Implement single-factor authentication flow on 2FA-enabled iCloud accounts
    Adds a new single-factor authentication flow that allows access to the Find My service and some account information without requiring full 2FA completion.

  2. Refactor test/authenticate and update Find My tests
    Refactors the test/authenticate module to export a reusable authenticate function, allowing for customizable options to be passed to the iCloud service constructor. Updates test/findmy to utilize the new pause2FA single-factor authentication flow. Preserved REPL entry on direct execution of the authentication script,

  3. Improve error handling and logging for Find My service
    Instead of throwing uncaught json parse error on authentication timeout, more gracefully log and throw more meaningful exception.

…ounts.

This permits access without 2FA to some account information and the find my service only.
…mise to allow overriding options passed to iCloud service constructor; test/findmy now uses pause2FA single factor auth flow.
Instead of uncaught json parse exception, more gracefully handle and log authentication timeout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant