A global setting, on by default, decides whether a self-service e-mail change needs confirmation #64

Closed
opened 2026-10-31 12:41:59 -04:00 by claude · 0 comments
Owner
  • Draft: BUG-54
  • Priority: medium
  • Agent: coder
  • Depends on: none
  • Decisions: Q-BUG-13, Q-BUG-15

Why

See #63. No such setting exists.

What changes

  • New options class EmailChangeOptions in src/dotnet/src/Ninlil.Dns.Identity/Options/, SectionName = "Identity:EmailChange" (a sibling of OidcSsoOptions' Identity:Sso), with RequireConfirmation (default true, Q-BUG-15). Summary per AGENTS.md: what reads it (#66) and what each value does.
  • Register it in ServiceCollectionIdentityExtension with IOptionsMonitor reads, so a change applies without a restart.
  • Add the class to src/dotnet/src/Ninlil.Web/EnvironmentVariables/OptionsEnvironmentVariableRegistry.cs; ENVIRONMENT.md row (NINLIL_IDENTITY_EMAIL_CHANGE_REQUIRE_CONFIRMATION, default true; check the derived name with the map) and recounted totals.
  • No endpoint uses it yet; no API change.

Acceptance

  • Env-var registry and documentation tests pass with the new totals (they fail first without the row).
  • A unit test reads true with no configuration, and binds NINLIL_IDENTITY_EMAIL_CHANGE_REQUIRE_CONFIRMATION=false to false.
  • dotnet test src/dotnet/tests/Ninlil.Dns.Identity.Tests and src/dotnet/tests/Ninlil.Web.Tests pass. Build 0 warnings.

Source

#63.
Owner decision 2026-10-31, round 2 (Q-BUG-15): "require e-mail confirmation default: on".

- **Draft:** BUG-54 - **Priority:** medium - **Agent:** coder - **Depends on:** none - **Decisions:** Q-BUG-13, Q-BUG-15 ### Why See #63. No such setting exists. ### What changes - New options class `EmailChangeOptions` in `src/dotnet/src/Ninlil.Dns.Identity/Options/`, `SectionName = "Identity:EmailChange"` (a sibling of `OidcSsoOptions`' `Identity:Sso`), with `RequireConfirmation` (default `true`, Q-BUG-15). Summary per AGENTS.md: what reads it (#66) and what each value does. - Register it in `ServiceCollectionIdentityExtension` with `IOptionsMonitor` reads, so a change applies without a restart. - Add the class to `src/dotnet/src/Ninlil.Web/EnvironmentVariables/OptionsEnvironmentVariableRegistry.cs`; `ENVIRONMENT.md` row (`NINLIL_IDENTITY_EMAIL_CHANGE_REQUIRE_CONFIRMATION`, default `true`; check the derived name with the map) and recounted totals. - No endpoint uses it yet; no API change. ### Acceptance - [ ] Env-var registry and documentation tests pass with the new totals (they fail first without the row). - [ ] A unit test reads `true` with no configuration, and binds `NINLIL_IDENTITY_EMAIL_CHANGE_REQUIRE_CONFIRMATION=false` to `false`. - [ ] `dotnet test src/dotnet/tests/Ninlil.Dns.Identity.Tests` and `src/dotnet/tests/Ninlil.Web.Tests` pass. Build 0 warnings. ### Source #63. Owner decision 2026-10-31, round 2 (Q-BUG-15): "require e-mail confirmation default: on".
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#64
No description provided.