Toopher Iframe demonstrated using Flask, a micro framework for Python
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
.gitignore
README.md
app.py
requirements.txt

README.md

Toopher Iframe Example in Flask

A simple demonstration of Toopher 2fa using Flask.

Running it

Clone the repo

git clone git@github.com: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

http://localhost:5000/

You should see a pairing screen

Imgur

Enjoy!