Auth: remember-me with two-factor sign-in and the session ID (3.2.0)

Aperta Adatta ai principianti
#196 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
73/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
php

Direzione di ricerca

Inizia dai tre file indicati: v3.0/packages/auth/adapters.md, v3.0/packages/auth/usage.md e v3.0/upgrade-guide.md; confronta il testo attuale con il comportamento dell’adattatore di autenticazione in 3.2.x descritto nell’issue e con la modifica del framework collegata. Aggiorna la documentazione sull’adattatore di sessione, sul flusso a due fattori e sull’aggiornamento dalla 3.1 alla 3.2. Il lavoro è completo quando tutti i comportamenti elencati e le indicazioni per cancellare i token prima dell’aggiornamento sono documentati correttamente; mantieni le modifiche in staging fino al rilascio della 3.2.0.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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", and signout(), drop a pending request.
  • verifyOtp() and a sign-in through the remember cookie (user()) regenerate the session ID, as signin() 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

  1. 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 after verifyOtp(), only in the browser that asked; a sign-in without "remember me" and signout() drop the request.
    • "Two-factor caveat" (:42-46): what signin() returns, when the cookie is set, and that a pending OTP still blocks the cookie.
  2. 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.
  3. 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
Lingua principale
Nessun dato sulla lingua
Stelle
3
Fork
1
Merge medio
2m
PR unite (30g)
27

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quantum-php/docs

Tutte le issue di quantum-php/docs

Issue simili

Altre issue su Security

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.