1 line
9.9 KiB
HTML
1 line
9.9 KiB
HTML
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>NfcAuth · Nicholas Quandt</title><meta name="description" content="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."><meta name="author" content="Nicholas Quandt"><link rel="canonical" href="https://code.knickqueue.win/assets/portfolio/case-studies/nfcauth.html"><meta property="og:title" content="NfcAuth · Nicholas Quandt"><meta property="og:description" content="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."><meta property="og:type" content="website"><meta property="og:url" content="https://code.knickqueue.win/assets/portfolio/case-studies/nfcauth.html"><meta property="og:image" content="https://code.knickqueue.win/assets/portfolio/images/social.png"><meta name="twitter:card" content="summary_large_image"><link rel="icon" href="/assets/portfolio/images/mark.svg" type="image/svg+xml"><link rel="stylesheet" href="/assets/portfolio/portfolio.css?v=20261011-2"><script src="/assets/portfolio/portfolio.js?v=20261011-2" defer></script></head><body class="portfolio"><a class="skip" href="#main">Skip to content</a><div class="wrap"><header class="masthead"><a class="identity" href="/" aria-label="Nicholas Quandt home"><span class="monogram" aria-hidden="true">NQ</span><span><strong>Nicholas Quandt</strong><small>Software & systems engineering</small></span></a><nav aria-label="Portfolio"><a href="/#work">Work</a><a href="/#approach">Approach</a><a href="/#about">About</a><a class="nav-contact" href="mailto:Nick1801@gmail.com">Get in touch ↗</a></nav></header></div><main id="main" class="wrap"><header class="case-hero"><p class="breadcrumb"><a class="" href="/#work">Selected work</a> / NfcAuth</p><p class="eyebrow">Windows authentication</p><h1>Authentication across the Windows service and user-session boundary.</h1><p class="intro">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.</p><div class="case-meta"><span>Private preview</span><span>Evidence reviewed 2026-10-11</span></div><div class="tags"><span>C# / .NET</span><span>Windows services</span><span>Credential provider</span><span>DPAPI</span></div></header><div class="case-overview diagram-frame"><img src="/assets/portfolio/diagrams/nfcauth.svg" width="600" height="365" alt="Windows authentication and recovery boundaries"></div><div class="case-layout"><nav class="case-toc" aria-label="Case study sections"><a href="#problem">The problem</a><a href="#contribution">My contribution</a><a href="#decisions">Engineering decisions</a><a href="#failure">A useful failure</a><a href="#evidence">Evidence</a><a href="#walkthrough">Recovery walkthrough</a><a href="#limits">Remaining limits</a><a href="#references">References</a></nav><article class="article"><section id="problem"><h2>The problem</h2><p>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.</p><p>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.</p></section><section id="contribution"><h2>My contribution</h2><p>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.</p></section><section id="decisions"><h2>Engineering decisions</h2><h3>Keep trust boundaries explicit</h3><p>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.</p><h3>Own the correct companion</h3><p>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.</p><h3>Verify installation before switching</h3><p>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.</p></section><section id="failure"><h2>A failure that shaped the design</h2><p>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.</p></section><section id="evidence"><h2>Evidence and scope</h2><p class="scope-note">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.</p><table class="evidence-table"><thead><tr><th>Check</th><th>Recorded result</th><th>Conditions & limits</th></tr></thead><tbody><tr><td><strong>Sign-in</strong></td><td>The owner confirmed a live secure-desktop NFC unlock and later hands-free sign-in on the current PC.</td><td>Human-confirmed single-PC acceptance. Identifier convenience access does not establish physical PIV proof.</td></tr><tr><td><strong>Installed recovery</strong></td><td>Preview.13 records a replacement tray PID after 3.25 seconds and service recovery after 10.5 seconds. A deliberate maintenance stop suppressed companion relaunch.</td><td>Recorded installed checks on one PC; these recovery checks did not repeat secure-desktop sign-in.</td></tr><tr><td><strong>Release integrity</strong></td><td>The 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.</td><td>Cited preview.13 source 27a6db1 and its release record, rather than a claim about later development.</td></tr></tbody></table></section><section id="walkthrough"><h2>Walk through the recovery path</h2><p class="scope-note">An illustrated explanation of the design. This is not a live application or a recording of a device trial.</p><div data-walkthrough><ol class="walkthrough"><li><span class="step-number">01</span><h3>Authorize</h3><p>Validate a server-signed grant against the approved local mapping and current policy.</p></li><li><span class="step-number">02</span><h3>Separate</h3><p>The SYSTEM service owns policy; the interactive companion owns user-session presentation.</p></li><li><span class="step-number">03</span><h3>Observe</h3><p>Detect an unexpected component exit while distinguishing deliberate maintenance.</p></li><li><span class="step-number">04</span><h3>Recover</h3><p>SCM restarts the service and service supervision restores one correctly owned companion.</p></li></ol><button class="button" type="button" hidden>Start walkthrough →</button><div class="walk-status" role="status" aria-live="polite"></div></div></section><section id="limits"><h2>Remaining limits</h2><ul><li>Second-PC physical acceptance, physical PIV proof, real offline expiry, failed-upgrade recovery and full uninstall remain separate unverified gates in the reviewed record.</li><li>The source and release assets remain private. This portfolio publishes a rewritten architecture and acceptance summary without enrollment data, account mappings or operational configuration.</li></ul></section><section id="references"><h2>Evidence references</h2><p class="scope-note">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.</p><ul class="references"><li>README.md — private preview, PIV and identifier-convenience distinction</li><li>docs/VALIDATION.md — human-confirmed sign-in and preview.13 installed recovery</li><li>Preview.13 acceptance source: 27a6db1</li><li>Reviewed checkout HEAD: d91715933ec023f60f52c0bf50603210990731e2; later development is not included in the cited measurements</li></ul><p class="project-revision">Revision: 27a6db1 — preview.13 acceptance snapshot</p><p class="source-note">Private source and private preview releases. Public architecture and validation summary only.</p><div class="actions"><a class="text-link" href="https://code.knickqueue.win/publish-bot/portfolio/src/branch/main/case-studies/nfcauth.md">Markdown version ↗</a></div></section><div class="case-end"><a class="" href="/#work">← All selected work</a><a class="" href="/assets/portfolio/case-studies/centra-tab.html">Next: Centra Tab →</a></div></article></div></main><div class="wrap"><footer><span>© 2026 Nicholas Quandt · Built and operated on my own infrastructure.</span><span><a class="" href="https://code.knickqueue.win/publish-bot/portfolio">Portfolio source</a> · <a class="" href="https://github.com/KnickQueue">GitHub</a> · <a class="" href="https://www.linkedin.com/in/nicholasquandt/">LinkedIn</a></span></footer></div></body></html> |