/py-tfa

Simple example with two factor authentication

Primary LanguagePythonApache License 2.0Apache-2.0

two-factor-auth example

License PRs Welcome

Simple example with two factor authentication.

This is more like a playground project that provides a basic two factor authenticatio example. You will need your smartphone to scan a QR code with an application, such as google authenticator.

Table of Contents

Install

  • Clone the repository and enter the project directory.

  • Create your virtual environment:

virtualenv -p `which python` venv
source venv/bin/activate

Usage

Just run the python file:

python tfa.py

Support

If you're having any problem, please raise an issue on GitHub.

Contributing

PRs accepted. Some general guidelines:

  • Write a concise commit message explaining your changes.
  • If applies, write more descriptive information in the commit body.
  • Refer to the issue/s your pull request fixes (if there are issues in the github repo).
  • Write a descriptive pull request title.
  • Squash commits when possible.

Before your pull request can be merged, the following conditions must hold:

  • All the tests passes (if any).
  • The coding style aligns with the project's convention.
  • Your changes are confirmed to be working.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

The project is licensed under the Apache 2.0 license.