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

オープン 初心者向け
#196 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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", 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
主要言語
言語のデータがありません
スター
3
フォーク
1
平均マージ
2分
マージ済み PR(30日)
27

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quantum-php/docs のほかの issue

quantum-php/docs の issue をすべて見る

似ている issue

Security の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。