MFA TOTP Authenticator - "Failed to validate the code"
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- python
研究方向
Start by reproducing the MFA registration flow using the reported config_local.py settings on the listed Ubuntu and pgAdmin setup. Trace the TOTP validation path reached after scanning the QR code and entering the authenticator code. Done means valid TOTP codes are accepted during registration and the regression is covered by an appropriate test.
由索引模型根據 Issue 內容生成。
描述
When registering for MFA using TOTP code, it gives error "Failed to validate the code".
To Reproduce
Steps to reproduce the behavior:
sudo apt install pgadmin4-web- Create
config_local.pyto force MFA via TOTP.
########################################################################
# Two-factor Authentication Configuration
########################################################################
# Set it to True, to enable the two-factor authentication
MFA_ENABLED = True
# Set it to True, to ask the users to register forcefully for the
# two-authentication methods on logged-in.
MFA_FORCE_REGISTRATION = True
# pgAdmin supports Two-factor authentication by either sending an one-time code
# to an email, or using the TOTP based application like Google Authenticator.
MFA_SUPPORTED_METHODS = ["authenticator"]
########################################################################
- Login via pgadmin4 web & scan TOTP QR code in Google authenticator.
- Enter TOTP code from authenticator.
- Get error message "Failed to validate the code".
- OS: Ubuntu 22.04.5 LTS, Linux-6.8.0-106-generic-x86_64-with-glibc2.35
- pgAdmin version: 9.13
- Mode: Server
- Browser (if running in server mode): Chrome 146.0.0.0
- Package type: DEB
- Python version: 3.10.12
I am accessing /pgadmin4 web via an insecure IP address.
- 主要語言
- Python
- 星號
- 3.9k
- 分支
- 918
- 平均合併
- 2 天 19 小時
- 30 天內合併 PR
- 28
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
pgadmin-org/pgadmin4 的其他 Issue
-
Bug
難度 2/5 1-3 小時 新手友好度 78/100
pgadmin-org/pgadmin4#10673 ·
維護者通常 2 天內回覆
-
Import/Export Data fails for a file name containing a backslash, and creates a stray file named E可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉Bug
難度 2/5 1-3 小時 新手友好度 82/100
pgadmin-org/pgadmin4#10672 ·
維護者通常 2 天內回覆
-
Feature
難度 2/5 1-3 小時 新手友好度 78/100
pgadmin-org/pgadmin4#10426 · 3 則留言 · 1 個 reaction ·
維護者通常 2 天內回覆
-
Drag-n-drop file to sql editor tool don't clear previous content before adding the new content in windows可能已有人在做 @lkmatsumura 於 1 天前認領。 未關閉Feature
難度 2/5 1-3 小時 新手友好度 68/100
pgadmin-org/pgadmin4#10272 · 5 則留言 ·
維護者通常 2 天內回覆
-
Housekeeping
難度 2/5 1-3 小時 新手友好度 76/100
pgadmin-org/pgadmin4#10157 · 1 則留言 ·
維護者通常 2 天內回覆
查看 pgadmin-org/pgadmin4 的全部 Issue
相似的 Issue
-
question
難度 1/5 1 小時以內 新手友好度 68/100
vllm-project/vime#524 ·
維護者通常 7 天內回覆
-
WOPI editor page is scrollable by a few pixels, which breaks scrolling in the document (Firefox)未關閉
難度 2/5 1-3 小時 新手友好度 84/100
suitenumerique/drive#969 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
theupdateframework/python-tuf#3044 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
FAIRmat-NFDI/pynxtools#861 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
NVIDIA/nsight-python#88 ·
維護者通常 1 天內回覆