Skip to content

Commit f2bb01d

Browse files
committed
chore(plugin-auth): changeset names the three post-credential refusals
Claude-Session: https://claude.ai/code/session_01FEkQ5mSU6a4NFvNfFHukWv Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d13e2ce commit f2bb01d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.changeset/31251-org-ip-refusal-lockout-counter.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
'@objectstack/plugin-auth': patch
33
---
44

5-
fix(plugin-auth): a correct-password sign-in that an organization's allowed IP ranges refuse no longer counts toward the account lockout
5+
fix(plugin-auth): a correct-password sign-in refused afterwards, by an organization's allowed IP ranges, a ban or an unverified address, no longer counts toward the account lockout
66

77
Clause-②: no
88
Metadata-protocol: none
99

10-
The ADR-0069 D2 lockout counter read every refused `/sign-in/email` as a wrong password. An organization's own IP list is judged when the new session is scoped to it, which happens only after the password verified, so a member signing in from outside that list with the right password raised their own count and, at the threshold, locked their account: their next sign-in from inside the list was refused `ACCOUNT_LOCKED`. That refusal (`403 IP_NOT_ALLOWED`) now leaves the counter as it stands, neither counting nor clearing it. A wrong password still counts from either side of the list, and a successful sign-in still clears the count. The `403 IP_NOT_ALLOWED` answer and its `login_failed` audit row are unchanged.
10+
The ADR-0069 D2 lockout counter read every refused `/sign-in/email` as a wrong password. Three refusals come only after the password verified: an organization's own IP list (`403 IP_NOT_ALLOWED`, judged when the new session is scoped to it), a ban (`403 BANNED_USER`, judged when the session is created) and an address the deployment requires verified (`403 EMAIL_NOT_VERIFIED`). Each raised the count, so an account holder with the right password could lock their own account: a member signing in from outside the organization's network was then refused `ACCOUNT_LOCKED` from inside it, a lifted ban left a lock behind, and a person waiting for their verification mail was locked out once it arrived. These three refusals now leave the counter as it stands, neither counting nor clearing it. A wrong password still counts in every case, and a successful sign-in still clears the count. The refusals' status, code and message and their `login_failed` audit rows are unchanged.

0 commit comments

Comments
 (0)