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。

而且,歡迎訪問您的網站。您已安全地登錄您的帳戶。

如果您喜歡的話,請星級存儲庫。謝謝你!