The identity settings API marks the lockout fields deprecated and says they have no effect #32

Closed
opened 2026-10-31 12:41:53 -04:00 by claude · 0 comments
Owner
  • Draft: REL-23
  • Priority: low
  • Agent: coder
  • Depends on: none
  • Decisions: Q-REL-6

Why

GET/PATCH /api/identity-settings exposes DefaultLockoutTimeSpan, MaxFailedAccessAttempts
and AllowedForNewUsers (src/dotnet/src/Ninlil.Web/Models/IdentitySettingsModels.cs:23-35), but
sign-in passes lockoutOnFailure: false (src/dotnet/src/Ninlil.Web/Controllers/AuthController.cs:253-259)
and rate limits instead (AdminLoginRateLimitOptions). The console already hides them.

What changes

  • The three properties are marked deprecated in the OpenAPI document (deprecated: true; check
    how Swashbuckle emits it for a model property, for example [Obsolete] with the matching
    generator setting, and that it does not drop the property). Their XML docs say they have no
    effect, that sign-in is rate limited by AdminLoginRateLimitOptions, and that a later release
    removes them (#234).
  • Reads and writes keep working unchanged, so no caller breaks now.
  • README Security text and CHANGELOG Unreleased announce the deprecation.
  • The snapshot and client follow in #33.

Acceptance

  • Web.Tests: the generated document marks the three properties deprecated (red first); GET
    and PATCH behave as before.
  • Web.Tests pass except OpenApiSnapshotTests (#33, same PR).

Source

d-design.md:393 ("deprecating the Identity lockout fields in the API"), d-design.md:111 (R20).
Owner decision 2026-10-31 (Q-REL-6): "deprecate now, remove later".

- **Draft:** REL-23 - **Priority:** low - **Agent:** coder - **Depends on:** none - **Decisions:** Q-REL-6 ### Why `GET/PATCH /api/identity-settings` exposes `DefaultLockoutTimeSpan`, `MaxFailedAccessAttempts` and `AllowedForNewUsers` (`src/dotnet/src/Ninlil.Web/Models/IdentitySettingsModels.cs:23-35`), but sign-in passes `lockoutOnFailure: false` (`src/dotnet/src/Ninlil.Web/Controllers/AuthController.cs:253-259`) and rate limits instead (`AdminLoginRateLimitOptions`). The console already hides them. ### What changes - The three properties are marked deprecated in the OpenAPI document (`deprecated: true`; check how Swashbuckle emits it for a model property, for example `[Obsolete]` with the matching generator setting, and that it does not drop the property). Their XML docs say they have no effect, that sign-in is rate limited by `AdminLoginRateLimitOptions`, and that a later release removes them (#234). - Reads and writes keep working unchanged, so no caller breaks now. - README Security text and CHANGELOG `Unreleased` announce the deprecation. - The snapshot and client follow in #33. ### Acceptance - [ ] Web.Tests: the generated document marks the three properties deprecated (red first); GET and PATCH behave as before. - [ ] Web.Tests pass except `OpenApiSnapshotTests` (#33, same PR). ### Source `d-design.md:393` ("deprecating the Identity lockout fields in the API"), `d-design.md:111` (R20). Owner decision 2026-10-31 (Q-REL-6): "deprecate now, remove later".
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#32
No description provided.