Skip to content

kronion/PyGotham18-MFA-Right-Way

Repository files navigation

MFA the Right Way: One Time Passwords with PyOTP

Presented at PyGotham 2018

MFA is an important strategy for modern application security. This repository proides an example of how to implement optional MFA in Django using the PyOTP library.

IMPORTANT: This Django project is for demonstration purposes only, and is NOT suitable for production use.


How to Run

  1. Install dependencies with Poetry
$ poetry install

or just use pip

$ pip install -r requirements.txt
  1. Create a user to log in as
$ python manage.py createsuperuser --username=[your_username] --email=[your_email]
  1. Run the Django development server
$ python manage.py runserver
  1. That's it! Visit http://localhost:8000 and log in. Once in, you can enable MFA from the profile screen.

About

One-Time Passwords with PyOTP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published