A simple Python and Flask implementation of a website that uses Twilio Account Security services to protect all assets within a folder. Additionally, it shows a Phone Verification implementation.
It uses four channels for delivery, SMS, Voice, Soft Tokens, and Push Notifications. You should have the Authy App installed to try Soft Token and Push Notification support.
- URL path "/protected" is protected with both user session and Twilio Two-Factor Authentication
- One Time Passwords (SMS and Voice)
- SoftTokens
- Push Notifications (via polling)
- Phone Verification
- SMS or Voice Call
- Clone this repo
- Run
pipenv install
orpip -r requirements.txt
- Register for a Twilio Account.
- Setup an Account Security app via the Twilio Console.
- Grab an Application API key from the Dashboard and paste it in
.env.example
- Save the
.env.example
file as.env
- Run
python run.py
from the cloned repo to run the app
- MIT