The Simplest Way to Make IIS and Webauthn Work Like They Should
Running iis and webauthn together lets users log in to Windows web apps with hardware keys. This setup replaces weak passwords with strong cryptographic checks right in the browser. Many teams still run core internal tools on Windows Server. Adding modern passkey checks protects these legacy apps from phishing attacks. You do not need to rewrite the whole app to get strong security. How iis and webauthn handle user logins and keys The login flow starts when a user visits your Windows web ser
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Running iis and webauthn together lets users log in to Windows web apps with hardware keys. This setup replaces weak passwords with strong cryptographic checks right in the browser.
Many teams still run core internal tools on Windows Server. Adding modern passkey checks protects these legacy apps from phishing attacks. You do not need to rewrite the whole app to get strong security.
How iis and webauthn handle user logins and keys
The login flow starts when a user visits your Windows web server. The server sends a fresh random challenge to the browser over a secure link. The browser then asks the user to touch their hardware key or scan a fingerprint.
Next, the user device signs that random challenge with a private key. The private key stays locked inside the user device at all times. The browser sends the signed response back to the web server for a quick check.
The web app checks the signature against the stored public key for that user. Once the check passes, the server sets a session cookie and grants role permissions. Your directory service maps the verified user to specific local groups or app roles.
Common failure modes and how to scope access
Teams often run into domain mismatch errors when they set up hardware keys. The browser checks that the web address matches the relying party ID on the server. If a load balancer changes the host header, the browser blocks the login right away.
Shared service accounts also create big security gaps in Windows web apps. When five engineers share one admin login, you cannot tie a hardware key to one person. Give every person a unique user account before you turn on hardware key checks.
FIDO2 / WebAuthn + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad session cookies are another common risk in older Windows setups. If a login token lasts for days, an attacker can steal that active cookie. Set short session times and force a fresh key tap for sensitive admin pages.
Unlogged database queries behind the web app also hide bad behavior. Even when a user logs in with a passkey, the app might use one shared database login. Scope your database roles so read actions and write actions use separate permissions.
Securing legacy Windows apps for engineering teams
Old internal apps often lack built-in support for modern browser key APIs. Updating old code takes months of work and pulls teams away from core projects. Instead, teams often offload the login check to an external identity provider.
Once the identity provider checks the hardware key, it passes a signed claim to the web server. The Windows server reads that claim and maps the user to a tight role. You should also mask sensitive fields like emails, phone numbers, and card numbers in query results.
Keep network paths tight between your web servers and backend data stores. Block direct network traffic from user laptops to the Windows server admin ports. Review your server logs every week to spot failed key checks or odd role changes.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
Can older Windows web apps use hardware security keys?
Yes, older apps can use hardware keys without full code rewrites. You can connect the web server to a modern identity provider that handles the key check.
Why does the browser reject my WebAuthn login on IIS?
Browsers reject the login when the site lacked a valid TLS certificate or matching domain name. Make sure the relying party ID matches the exact web address in the browser bar.
What happens if an engineer loses their hardware key?
Admins should let users register at least two keys on their profile. If a user loses their main key, they can log in with a backup key and remove the lost one.
Related guides
In this post