Auth: remember-me with two-factor sign-in and the session ID (3.2.0)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 73/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- php
調査の方向性
指定された3つのファイルから始めます: v3.0/packages/auth/adapters.md、v3.0/packages/auth/usage.md、v3.0/upgrade-guide.md。issueで説明されている3.2.xの認証アダプターの動作と、リンク先のフレームワーク変更に照らして、現在の内容を確認します。セッションアダプター、二要素認証フロー、3.1から3.2へのアップグレードに関する案内を更新します。列挙されたすべての動作と、アップグレード前にトークンを消去する案内が正確に文書化されたら完了です。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分
- マージ済み PR(30日)
- 27
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日以内に返信
quantum-php/docs の issue をすべて見る
似ている 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 ·