A simple demonstration of Toopher 2fa using Flask.
Clone the repo
git clone [email protected]:smholloway/toopher-iframe-example-in-python.git
Install the requirements (Toopher v1.1.0+ and Flask)
# make a virtual environment, if you're into that sort of thing
pip install -r requirements.txt
Set a TOOPHER_CONSUMER_KEY and TOOPHER_CONSUMER_SECRET (obtained from the Toopher Dev site).
export TOOPHER_CONSUMER_KEY=xxx
export TOOPHER_CONSUMER_SECRET=xxx
Run the app
python app.py
Fire up a browser and navigate to the site
You should see a pairing screen
Enjoy!