jeffreydwalter / arlo

Python module for interacting with Netgear's Arlo camera system.
Apache License 2.0
520 stars 123 forks source link

feat(login) add interactive login #182

Closed sceniclife closed 2 years ago

sceniclife commented 2 years ago

I added a mostly working Interactive Login for MFA. I didn't want the automatic process of the script digging in my gmail for the email, etc. Using interactive=True will allow the user to choose which Factor to use. Email = it will send the email the MFA code, the script will ask for it. Trusted Device = it will send a push notification to approve/deny.

What is currently not working is the Trust this current device logic. But once that is figured out, the rest of the code should be able to work.

To get a trusted device, you'll need to officially install the arlo app, log into it, then choose Trust Device from within the app. Then, this script should see it and prompt you with that option.

Example flow:

arlo = Arlo(USERNAME, PASSWORD, interactive=True)
# choose Trust Device phone during prompt
# Push Notification is sent to phone
# Approve (or Deny) the push notification
# script continues
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.