Nicholas QuandtSoftware & systems engineering

Windows authentication

Authentication across the Windows service and user-session boundary.

A managed Windows sign-in integration with a credential provider, SYSTEM service, interactive companion and signed local grants. Recovery has to respect both privilege and user-session ownership.

Private previewEvidence reviewed 2026-10-11
C# / .NETWindows servicesCredential providerDPAPI
Windows authentication and recovery boundaries

The problem

A Windows authentication integration spans components with different authority and lifetimes. The credential provider participates in sign-in, a SYSTEM service handles trusted local policy, and the interactive companion belongs to the signed-in user's session. A crash, upgrade or deliberate maintenance stop needs a different response in each layer.

The server issues signed grants for approved local account mappings. The Windows service validates local authorization and communicates through protected pipes. DPAPI protects local state, and the interactive companion presents status and settings. NFC identifier-based convenience access and cryptographic PIV proof are distinct modes with different assurance.

My contribution

Implemented the Windows client/service integration, companion supervision, grant handling, administration flow and release verification. This is a private preview with a public architecture case study. The work builds on Windows authentication and service facilities rather than replacing their underlying security model.

Engineering decisions

Keep trust boundaries explicit

Server-signed grants carry authorization. Protected local pipes distinguish credential and control paths. Local account mappings and secrets remain local, and grant validation rejects an invalid or expired authorization rather than inventing an offline fallback.

Own the correct companion

The service supervises the active console companion, distinguishes settings/debug helpers from the tray and serializes launches. Unexpected service failure uses SCM recovery. Intentional maintenance and uninstall suppress supervision instead of immediately relaunching the component.

Verify installation before switching

Versioned payloads are staged and hash-checked before stopping the old service and companion. The installer retains the previous payload for recovery and preserves existing identities and mappings through an upgrade.

A failure that shaped the design

The service knew an enrolled token's authorized role, but the status event serializer still emitted User. The repair propagated the actual role and tested changes, reconnects and duplicate suppression over a real disposable pipe. It demonstrated why a correct authority decision does not guarantee that every user-facing status path is correct.

Evidence and scope

These are reviewed recorded results unless explicitly described as current public-access verification. Application tests and physical-device checks were not rerun for this portfolio.

CheckRecorded resultConditions & limits
Sign-inThe owner confirmed a live secure-desktop NFC unlock and later hands-free sign-in on the current PC.Human-confirmed single-PC acceptance. Identifier convenience access does not establish physical PIV proof.
Installed recoveryPreview.13 records a replacement tray PID after 3.25 seconds and service recovery after 10.5 seconds. A deliberate maintenance stop suppressed companion relaunch.Recorded installed checks on one PC; these recovery checks did not repeat secure-desktop sign-in.
Release integrityThe preview.13 build records 142 assertions and verification of 95 installed payload hashes. All five private release assets matched their authenticated download hashes and byte counts.Cited preview.13 source 27a6db1 and its release record, rather than a claim about later development.

Walk through the recovery path

An illustrated explanation of the design. This is not a live application or a recording of a device trial.

  1. 01

    Authorize

    Validate a server-signed grant against the approved local mapping and current policy.

  2. 02

    Separate

    The SYSTEM service owns policy; the interactive companion owns user-session presentation.

  3. 03

    Observe

    Detect an unexpected component exit while distinguishing deliberate maintenance.

  4. 04

    Recover

    SCM restarts the service and service supervision restores one correctly owned companion.

Remaining limits

  • Second-PC physical acceptance, physical PIV proof, real offline expiry, failed-upgrade recovery and full uninstall remain separate unverified gates in the reviewed record.
  • The source and release assets remain private. This portfolio publishes a rewritten architecture and acceptance summary without enrollment data, account mappings or operational configuration.

Evidence references

These filenames identify the source and acceptance records used to prepare this write-up. Private application files are not published as part of the portfolio.

  • README.md — private preview, PIV and identifier-convenience distinction
  • docs/VALIDATION.md — human-confirmed sign-in and preview.13 installed recovery
  • Preview.13 acceptance source: 27a6db1
  • Reviewed checkout HEAD: d91715933ec023f60f52c0bf50603210990731e2; later development is not included in the cited measurements

Revision: 27a6db1 — preview.13 acceptance snapshot

Private source and private preview releases. Public architecture and validation summary only.