two factor auth FastAPI
1.0.0
该存储库使用FastApi来创建WebApp,而PYOTP Python库用于生成和验证一次性密码。
git clone https://github.com/vinodiOS/two-factor-auth-FastAPI.git
cd two-factor-auth-FastAPI
virtualenv venv
source env/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload docker-compose up
请按照以下步骤设置用户帐户,并使用Authenticator应用程序生成TOTP。
输入以下路径来创建新用户。
http://127.0.0.1:8000/signup/
输入适当的详细信息后,将创建新用户,并将页面导航到QR代码。

使用Google Authenticator或Microsoft Authenticator或任何其他Authenticator应用程序扫描QR码并生成TOTP。

遵循此路径登录
http://127.0.0.1:8000/login/输入用户凭据以及Authenticator应用程序生成的6个数字TOTP。

而且,欢迎访问您的网站。您已安全地登录您的帐户。

如果您喜欢的话,请星级存储库。谢谢你!