FIDO2 and WebAuthn
What you'll learn: How modern passwordless authentication works using FIDO2 and the WebAuthn API to eliminate password vulnerabilities entirely.
What is FIDO2?
FIDO2 is the latest generation of the FIDO Alliance's authentication standards, enabling truly passwordless login experiences. Unlike TOTP or hardware security keys that supplement passwords, FIDO2 can replace them completely. It consists of two main components: the WebAuthn API (a browser standard) and the CTAP protocol (how authenticators communicate with devices).
How WebAuthn Works
The WebAuthn API lets websites interact with authenticators—whether that's a hardware security key, your phone's fingerprint scanner, or your laptop's Touch ID. Here's the flow:
- Registration: Your device generates a unique cryptographic key pair tied to that specific website
- Storage: The private key stays locked in the authenticator (never leaves your device)
- Authentication: The website sends a challenge; your authenticator signs it with the private key
- Verification: The server validates the signature using the stored public key
Think of it like a digital lockbox: The website has a public keyhole, and only your specific authenticator has the private key that fits. No password database to steal, no phishing possible—the authenticator knows which website it's talking to.
Resident Keys and Platform Authenticators
Resident keys (also called discoverable credentials) store user information on the authenticator itself, enabling passwordless login without entering a username. Platform authenticators are built into your device—Touch ID on iPhones, Windows Hello, Android biometrics—making authentication seamless and hardware-backed.
FIDO2 is phishing-resistant because the cryptographic binding ensures credentials only work on the legitimate domain. No credential stuffing, no rainbow tables, no intercepted passwords.
Key Takeaway: FIDO2 and WebAuthn provide passwordless authentication using cryptographic key pairs, with private keys secured in hardware authenticators, eliminating password-based attack vectors entirely while enabling seamless biometric login experiences.