Two-factor Flask

QR Code

Overview

Use the QR code on the demo site to authenticate with your two-factor device. Use the form to submit the generated verification code and see the appropriate response.

{
  "message": "Success"
}

Demo

Visit two-factor-flask.herokuapp.com.

curl --data 'code=XXXXXX' https://two-factor-flask.herokuapp.com

Development

Requirements

Setup Local Environment

$ pip install -r requirements.txt

$ echo "DEBUG=True" >> .env
$ echo "DEVEL=True" >> .env
$ echo "PORT=5000" >> .env
$ echo "WEB_CONCURRENCY=2" >> .env

Local Development

$ foreman start
$ open http://localhost:5000