Auth: remember-me with two-factor sign-in and the session ID (3.2.0)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 73/100
- Issue 類型
- 文件
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- php
研究方向
從指定的三個檔案開始:v3.0/packages/auth/adapters.md、v3.0/packages/auth/usage.md 和 v3.0/upgrade-guide.md;對照 issue 中描述的 3.2.x auth adapter 行為和連結的 framework 變更,檢查目前的文字。更新 session adapter、雙因素流程,以及從 3.1 升級至 3.2 的指南。所有列出的行為和升級前清除 token 的指南都正確記錄後,即為完成;在 3.2.0 發布之前,將變更保留在 staging。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- 沒有語言資料
- 星號
- 3
- 分支
- 1
- 平均合併
- 2 分鐘
- 30 天內合併 PR
- 27
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
quantum-php/docs 的其他 Issue
-
documentation
難度 2/5 1-3 小時 新手友好度 84/100
quantum-php/docs#190 ·
維護者通常 1 天內回覆
-
documentation
難度 2/5 1-3 小時 新手友好度 72/100
quantum-php/docs#187 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 75/100
quantum-php/docs#194 ·
維護者通常 1 天內回覆
-
documentation
難度 3/5 1-2 天 新手友好度 63/100
quantum-php/docs#192 ·
維護者通常 1 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 48/100
quantum-php/docs#185 ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 73/100
google/elephant-goldfish-model#586 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
WebOfTrust/keripy#1787 ·
維護者通常 1 天內回覆
-
logging pod-log-review security severity: medium
難度 2/5 1-3 小時 新手友好度 76/100
smarter-sh/smarter#1124 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
lightninglabs/layertree#28 ·