josephabrahams / two-factor-flask

Two-factor Basic Auth Example

Home Page:https://two-factor-flask.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Two-factor Basic Auth Example

https://two-factor-flask.herokuapp.com/


Languages

Language:HTML 61.2%Language:Python 28.1%Language:Shell 10.7%