0Pricing
Cryptology Academy · Lesson

Passwordless Auth: WebAuthn and FIDO2

Explore the W3C WebAuthn standard and FIDO2 passkeys as the future of authentication.

Passwordless Auth: WebAuthn and FIDO2 is a free Cryptology Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cryptology Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

FIDO2 Architecture

FIDO2 is the umbrella term for the W3C Web Authentication specification (WebAuthn) combined with the FIDO Alliance's Client-to-Authenticator Protocol 2 (CTAP2). Together they define a complete passwordless authentication system using public-key cryptography bound to the relying party origin.

Authenticator Types

FIDO2 supports two authenticator categories. Platform authenticators are built into the device: Touch ID and Face ID on Apple devices, Windows Hello on Windows. Roaming authenticators are external hardware tokens: YubiKey, Google Titan Key, Feitian keys. All use public-key cryptography and generate attestation statements.

Registration: Credential Creation

During WebAuthn registration, the authenticator generates a new asymmetric key pair for the relying party. The public key is sent to the server and stored. The private key never leaves the authenticator. An attestation statement proves the authenticator's type and that the key was generated inside the authenticator hardware.

Authentication: Credential Assertion

During WebAuthn authentication, the server sends a challenge to the client. The authenticator signs the challenge along with the relying party ID and client data using the stored private key. The server verifies the signature with the stored public key. No shared secret is transmitted at any point.

Origin Binding Prevents Phishing

The relying party ID in a WebAuthn assertion is cryptographically bound to the origin (domain) of the requesting page. An authenticator will refuse to sign an assertion for a different origin than the one it was registered with. This makes WebAuthn phishing-resistant by construction: a fake phishing site cannot complete the authentication.

Resident Keys and True Passwordless

Discoverable credentials (formerly resident keys) are stored on the authenticator itself and indexed by the relying party ID. This enables true passwordless flows: the user presents their authenticator, selects their account from credentials stored on the device, and authenticates without entering a username or password.

User Verification vs User Presence

WebAuthn distinguishes between user verification (UV) and user presence (UP). User presence requires only that the user touch or tap the authenticator. User verification additionally requires a PIN or biometric check, proving the specific person is present. High-security applications should require UV for authentication.

CTAP2 Protocol

CTAP2 defines the protocol between the client (browser or OS) and an external roaming authenticator over USB, NFC, or BLE. It specifies the commands for credential creation, assertion generation, and authenticator management. CTAP2.1 adds features like credential management and always-UV policies.

Passkeys: Synced Credentials

Passkeys are discoverable WebAuthn credentials that synchronize across a user's devices via the platform vendor's encrypted cloud (iCloud Keychain for Apple, Google Password Manager, Windows Hello for Business). Passkeys provide passwordless authentication with cross-device availability, combining security with the convenience users expect from passwords.

Passkey UX Flow

A typical passkey authentication flow: the user visits a website and clicks "Sign in with passkey." The browser shows available passkeys for the site. The user authenticates with biometrics (Face ID, Touch ID, Windows Hello). The browser signs the challenge and sends the assertion. The entire flow takes seconds with no password entry.

Comparing WebAuthn to Traditional Auth

Traditional passwords: phishable, reusable, crackable from database breaches. OTP codes (TOTP): phishable in real-time. SMS codes: SIM-swappable, phishable. WebAuthn/passkeys: phishing-resistant via origin binding, no server-side secret to steal, unique per site, hardware-protected private keys. WebAuthn is the strongest widely-deployed authentication mechanism available today.

WebAuthn vs Passwords Check

Which WebAuthn property makes it fundamentally resistant to phishing attacks, unlike passwords or TOTP codes?

Lesson Recap: FIDO2 and WebAuthn

FIDO2 combines WebAuthn (W3C) and CTAP2 (FIDO Alliance) for phishing-resistant passwordless authentication. Platform authenticators (Touch ID, Face ID) and roaming authenticators (YubiKey) use public-key cryptography bound to the relying party origin. Passkeys extend this with cross-device sync. WebAuthn provides the strongest widely-available authentication security today.

Frequently asked questions

Is the “Passwordless Auth: WebAuthn and FIDO2” lesson free?

Yes — the full text of “Passwordless Auth: WebAuthn and FIDO2” is free to read here on the web, and the Cryptology Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cryptology Academy course, upgrade to CoddyKit PRO.

What will I learn in “Passwordless Auth: WebAuthn and FIDO2”?

Explore the W3C WebAuthn standard and FIDO2 passkeys as the future of authentication. You practise Cryptology Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cryptology Academy?

No prior experience is required. Cryptology Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Passwordless Auth: WebAuthn and FIDO2” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cryptology Academy lesson?

Yes. Every Cryptology Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. The Fundamental Password Authentication Problem
  2. SRP: Secure Remote Password Protocol
  3. PAKE Protocols and Their Properties
  4. Passwordless Auth: WebAuthn and FIDO2
← Back to Cryptology Academy