Auth: remember-me with two-factor sign-in and the session ID (3.2.0)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 73/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- php
- Área
- authentication, documentation
Línea de trabajo
Empieza por los tres archivos indicados: v3.0/packages/auth/adapters.md, v3.0/packages/auth/usage.md y v3.0/upgrade-guide.md; contrasta el texto actual con el comportamiento del adaptador de autenticación en 3.2.x descrito en el issue y con el cambio del framework enlazado. Actualiza la documentación del adaptador de sesión, del flujo de dos factores y de la actualización de 3.1 a 3.2. El trabajo estará listo cuando todos los comportamientos enumerados y las indicaciones para borrar los tokens antes de la actualización estén documentados correctamente; mantén los cambios en staging hasta que se publique 3.2.0.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Framework 3.2.0 changes the session auth adapter (quantum-php/framework#707):
- With two-factor authentication on, the remember-me token and cookie are issued only after
verifyOtp()accepts the OTP, in the browser that asked for "remember me".signin()issued them before the OTP step. A sign-in without "remember me", andsignout(), drop a pending request. verifyOtp()and a sign-in through the remember cookie (user()) regenerate the session ID, assignin()without two-factor authentication does.- Remember tokens issued before the upgrade are not revoked; applications clear them to sign remembered browsers out.
The docs still say the remember token is issued at signin() and list session regeneration only for a sign-in without two-factor authentication.
Changes
v3.0/packages/auth/adapters.md, session adapter:- "What it does" (
:16-22): the session ID is also regenerated after the OTP and when the remember cookie signs a user in. - "Remember-me behavior" (
:24-40): with two-factor on, the token and cookie come afterverifyOtp(), only in the browser that asked; a sign-in without "remember me" andsignout()drop the request. - "Two-factor caveat" (
:42-46): whatsignin()returns, when the cookie is set, and that a pending OTP still blocks the cookie.
- "What it does" (
v3.0/packages/auth/usage.md, "Two-factor flow" (:40-61): with "remember me", the cookie is set when the OTP is verified, and the user gets a new session ID.v3.0/upgrade-guide.md, "Upgrading from 3.1 to 3.2": a short section on remember tokens issued before the upgrade (how to clear them) and the new session ID after the OTP.
Every statement is checked against the 3.2.x code. The changes wait in staging until 3.2.0 is released.
Related
- quantum-php/framework#707, PR quantum-php/framework#713
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 3
- Forks
- 1
- Merge medio
- 2 min
- PR fusionados (30 d)
- 27
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 quantum-php/docs
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
quantum-php/docs#190 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
quantum-php/docs#187 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 75/100
quantum-php/docs#194 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 3/5 1-2 días Aptitud para principiantes 63/100
quantum-php/docs#192 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
quantum-php/docs#185 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quantum-php/docs
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
google/elephant-goldfish-model#586 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
WebOfTrust/keripy#1787 ·
Los mantenedores suelen responder en 1 día
-
logging pod-log-review security severity: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
smarter-sh/smarter#1124 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
lightninglabs/layertree#28 ·