- Notifications
You must be signed in to change notification settings - Fork4
jpvinod/two-factor-auth-FastAPI
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository usesFastAPI for creating webapp andPyOTP Python library is used for generating and verifying one-time passwords.
git clone https://github.com/vinodiOS/two-factor-auth-FastAPI.gitcd two-factor-auth-FastAPIvirtualenv venvsource env/bin/activate pip install -r requirements.txtuvicorn main:app --reload
docker-compose upFollow next steps for setting up user account and generate TOTP using Authenticator app.
Enter the following path to create new user.
http://127.0.0.1:8000/signup/
After entering appropriate details new user would be created and page will be navigated to QR Code.
UseGoogle Authenticator orMicrosoft Authenticator or any other Authenticator app to scan QR code and generate TOTP.
Follow this path to login
http://127.0.0.1:8000/login/
Enter user credentials along with 6 digit TOTP generated by Authenticator app.
And, welcome to your website. You have securely logged into your account.
Please star ✨ repository if you like it. Thank you!
About
Two Factor Authentication (2FA) using FastAPI
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.




