auto_duo
Automatically pass each duo push, no need to click on cellphone every time.
Try at: http://duo.jtc1246.com/
Installation
pip install auto_duo
Dependencies
Please install nodejs (recommends 18.0.0, see Nodejs-version for detail) and npm first.
Then use
npm install crypto
npm install @aelfqueen/xmlhttprequest
Usage
from auto_duo import start_server
start_server('./duo_data.json', 8080)
Then open http://{your_ip}:8080 in browser, and follows the instructions in webpage.
The data will be loaded from and stored into your specified file, if not exist will create a new one.
How it works
Your QR code contains the activation code from duo, the server will use this code to communicate with duo server, and continuously check whether there is a push, and agree it automatically if there is.
Nodejs-version
I only know the following facts:
- Can work with nodejs 18.0.0
- Cannot work with nodejs 12.x.x
I don't know anything else about this.
I recommend you to:
- Install nodejs 18.0.0 directly if you haven't installed nodejs.
- If you have nodejs try your own version first, if it doesn't work (show fail on webpage but your QR code is correct), install 18.0.0.
You are welcome to create an issue to tell me which version works or not.
How to install a specific nodejs version
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Then exit termianl and relaunch it,
nvm install 18.0.0
nvm use 18.0.0
Then use node -v to check whether it is installed correctly.
LICENSE
My JavaScript code is modified from Duochrome ( https://github.com/FreshSupaSulley/Duochrome ), which is MIT licensed.
Source code is in Duochrome directory, and my JS code is in js directory and auto_duo/data.py (base64 encoded).
Thanks the original authors for their contribution.
Release files for auto-duo 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auto_duo-1.0.0.tar.gz | 22.4 kB | Details |
Release files / auto_duo-1.0.0.tar.gz
| Download URL | auto_duo-1.0.0.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2223b568d39376b179a15cfa2d2d4d7cbc5dc562b30a2424acde7fb587f22b22
|
|
BLAKE2b-256 checksum How to use checksums |
e97ed54914dc0a8e476486e051b5be96c4a5d1849956bcd1ce955e34b18da171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.12
|