MFA TOTP Authenticator - "Failed to validate the code"
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python
- Área
- authentication, security
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 3.9k
- Forks
- 918
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 35
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pgadmin-org/pgadmin4
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pgadmin-org/pgadmin4#10673 ·
Los mantenedores suelen responder en 2 días
-
Import/Export Data fails for a file name containing a backslash, and creates a stray file named EAbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
pgadmin-org/pgadmin4#10672 ·
Los mantenedores suelen responder en 2 días
-
Feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pgadmin-org/pgadmin4#10426 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
Drag-n-drop file to sql editor tool don't clear previous content before adding the new content in windowsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoFeature
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
pgadmin-org/pgadmin4#10272 · 5 comentarios ·
Los mantenedores suelen responder en 2 días
-
Housekeeping
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
pgadmin-org/pgadmin4#10157 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de pgadmin-org/pgadmin4
Issues similares
-
cli good first issue help wanted python up-for-grabs
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
andrewsiah/agentswarm-data-tasks#36 ·
Los mantenedores suelen responder en 1 día
-
bug drawing-tools
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
cofade/open-garden-planner#827 ·
Los mantenedores suelen responder en 1 día
-
Methodology pageAbiertodocumentation site texts
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Krasnopjorovs/temet#66 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día