Skip to content

[M2.2e3b] Render MFA enrollment and recovery controls - #69

Merged
samuelmbabhazi merged 2 commits into
mainfrom
feat/m2.2e3b-mfa-screens
Nov 5, 2026
Merged

samuelmbabhazi merged 2 commits into
mainfrom
feat/m2.2e3b-mfa-screens

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

The account page now supports the complete MFA workflow: current status, manual authenticator enrollment, activation, recovery-code replacement and disable. It explains session/API-token invalidation before the user confirms a security change, shares the account mutation gate and focuses one common request-error summary.

Setup keys and recovery codes can be copied only by an explicit click. Clipboard failures offer manual selection with fixed safe text. Provisioning URIs never become links. Code acknowledgement removes the displayed grant, and the private lifetime controls from #68 remain in force. Sign-out does not show a false “Signing out” state during an MFA operation.

Validation: all 41 Angular tests pass; web lint, typecheck and production build pass. New tests exercise the rendered enrollment/activation/copy/acknowledgement flow and denied/late clipboard responses. Initial production payload remains below the warning budget (343 kB raw / 90 kB estimated transfer). No new dependency. The first commit only enables Angular-aware template formatting; the second contains the functional change.

Stacked on #68. This PR stays draft until real-browser acceptance and the final desktop/mobile accessibility/design review in M2.2e4. No merge requested.

  • MFA screens and explicit clipboard behavior
  • Web checks and regression tests
  • Plan/spec updated
  • Real-browser and final design/accessibility review (M2.2e4)

@samuelmbabhazi
samuelmbabhazi force-pushed the feat/m2.2e3a-mfa-form-state branch from 58c489f to 32421bb Compare November 5, 2026 12:39
@samuelmbabhazi
samuelmbabhazi changed the base branch from feat/m2.2e3a-mfa-form-state to main November 5, 2026 12:39
@samuelmbabhazi
samuelmbabhazi force-pushed the feat/m2.2e3b-mfa-screens branch from 1c50679 to 24f74b4 Compare November 5, 2026 12:40
@samuelmbabhazi
samuelmbabhazi marked this pull request as ready for review November 5, 2026 12:40
@samuelmbabhazi
samuelmbabhazi merged commit e11c8e5 into main Nov 5, 2026
9 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the feat/m2.2e3b-mfa-screens branch November 5, 2026 12:40
samuelmbabhazi added a commit that referenced this pull request Nov 5, 2026
Token form state now supports bounded-lifetime profile-read credentials,
password/MFA reauthentication, explicit revocation and forward/back
metadata pages. It retains one page at a time and distinguishes
unavailable data from an empty list. Tenant permissions remain
fail-closed until the M2.3 live-policy adapter and selection UI.

The absolute expiry is fixed when a form starts or its lifetime changes,
preserving identical request bodies/keys after uncertain failures.
Private credentials clear on acknowledgement, timeout, departure or
session rotation; clearing the display does not revoke a saved token.
Mutations share the account gate and refresh metadata only after server
confirmation. HTTP 409 copy now describes an account-state conflict,
including capacity constraints, instead of incorrectly claiming every
conflict is an expired retry.

Validation: all 48 Angular tests pass, including seven token-form tests
covering pagination, validation, stable retries, required proof,
revocation, failed loads and stale/private-state cleanup. Web
lint/typecheck/build pass. No new dependency or backend contract.
Plan/spec updated. Stacked on #69; panel wiring follows in M2.2e3d. No
merge requested.

- [x] M2.2e3c criteria met
- [x] Retry, proof, pagination and private-state regressions
- [x] Plan/spec updated
- [x] No credential in metadata pages, URLs or persistent browser
storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant