Identity and access: follow-ups from reviews

オープン
#3,609 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
8/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
csharp, sql

調査の方向性

This is a tracking list, not one task: pick a single unchecked line before touching anything. The password-lockout items are anchored in MemberPasswordGuessTests, CmsSignInManager and MemberManager.ChangePasswordAsync; the consent items sit around the FCMS1609 catch and ServiceUnavailableException. Read the review of #3597 and #3594 first, and expect several of these to need a maintainer decision (the "stays counted" release note) before any code is right. Done means one line is closed with a test, not the whole list.

索引モデルが issue の本文から書いたものです。

説明

area:authorization area:identity type:chore

Findings of reviews in this area that do not block a merge: a race that needs requests in parallel on one row, a decision the specification still owes, a text, a test. They are kept here as one list and worked off together at the end of a milestone, instead of each as a bug of its own.

A finding becomes a type:bug issue only when it is a security hole, a loss or corruption of data, a wrong answer on an ordinary path, or shown by a failing test or a reproduction. Anything else from a review is added here, as a line or as a link to its issue.

Sorted from the open bugs on 23 Nov 2026.

  • #3601
  • #3600
  • #3595
  • #3570

From the review of #3597 (members' wrong passwords), all from reading:

  • The member login page and the direct grant still check the password before they count it, so a burst of parallel wrong passwords is bounded by the auth rate limit, not by the lockout limit. Counting first means replacing Identity's CheckPasswordSignInAsync.
  • The admin's sign-in may drop a count the same way: CmsSignInManager ignores the result of UserManager.AccessFailedAsync, and CmsUserManager.AccessFailedAsync has no retry on that path. Not tested.
  • MemberManager.ChangePasswordAsync does not look at DeactivatedAt again after a reload: a deactivation that lands between the read and a lost save no longer fails the change. Needs parallel requests, a valid token and the current password.
  • A right current password that takes the last place of the count leaves the member locked out when its second save never lands. The release note calls this "stays counted"; decide whether it is wanted.
  • MemberPasswordGuessTests: ARightPasswordThatLostItsSave… passes on the code before the fix, the save is lost in only one order of the two requests, and no test asserts that a lockout set by another request stays.

From #3594 (the end of an MCP consent), left by its decisions and its review:

  • The catch that answers FCMS1609 wraps the whole delete transaction, so a refusal from the state's store or the event's write is answered the same; a deadlock raised by a read or a bulk delete is not a DbUpdateException and stays a 500. Telling them apart needs a new provider member.
  • On SQL Server the revoke of the first step may deadlock with a refresh's token insert; as the victim it answers 500 with nothing revoked. From reading, not run.
  • A lock of the consents that is not free within 45 seconds leaves no log line, and the 503 carries no Retry-After. ServiceUnavailableException is shared, so adding it changes every answer of that exception.
  • The bulk removal answers { removed, more } only: a client skipped for a foreign key refusal or a deadlock shows only as warning 9009, not as a named leftover. Naming them changes the contract.
  • Event 9013 carries the whole exception.
  • No test counts the user.sessions_ended rows across a 409 and the repeated DELETE.
主要言語
C#
スター
567
フォーク
107
平均マージ
2時間 35分
マージ済み PR(30日)
425

環境構築

はじめの一歩

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

fluentcms/FluentCMS のほかの issue

fluentcms/FluentCMS の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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