Building Multi-Factor Authentication with TOTP and WebAuthn

Building Multi-Factor Authentication with TOTP and WebAuthn

Multi-Factor Authentication (MFA) is a method of verifying a user’s identity by requiring more than one form of evidence, such as something they know, something they have, and something they are. In this guide, we’ll dive into implementing two popular MFA methods: Time-Based One-Time Passwords (TOTP) and Web Authentication (WebAuthn). What is Time-Based One-Time Password (TOTP)? Time-Based One-Time Password (TOTP) is a type of one-time password algorithm that generates a unique passcode every 30 seconds based on a shared secret key between the authentication server and the user’s device. TOTP is widely used in applications like Google Authenticator, Authy, and many others. ...

Jul 13, 2026 · 5 min · 1008 words · IAMDevBox
FIDO vs FIDO2: Understanding the Evolution of Passwordless Authentication

FIDO vs FIDO2: Understanding the Evolution of Passwordless Authentication

FIDO2 is the latest evolution in the realm of passwordless authentication, building upon the foundations laid by FIDO (Fast IDentity Online). As an IAM engineer, understanding the differences and advancements between FIDO and FIDO2 is crucial for implementing robust, secure authentication systems. What is FIDO? FIDO is a set of open standards for authentication that aims to replace passwords with more secure methods. The FIDO Alliance, a global industry association, developed these standards to enhance online security by reducing reliance on passwords, which are often weak and easily compromised. ...

Jun 01, 2026 · 6 min · 1128 words · IAMDevBox
Passkeys Adoption Guide: Implementing FIDO2 WebAuthn in Production

Passkeys Adoption Guide: Implementing FIDO2 WebAuthn in Production

Passkeys replace passwords with FIDO2 WebAuthn credentials — cryptographic key pairs where the private key never leaves the device. Users authenticate with biometrics (Touch ID, Face ID, Windows Hello) or hardware keys (YubiKey, Titan key) instead of passwords. This guide covers production implementation with @simplewebauthn/server, Keycloak WebAuthn flow setup, and error debugging. For protocol context, see our FIDO vs FIDO2 explainer. What is FIDO2 WebAuthn? FIDO2 WebAuthn (W3C spec + CTAP2 protocol) is the standard that enables passkeys. The browser’s navigator.credentials.create() API talks to a local authenticator via CTAP2 over USB/NFC/BLE or the OS platform (TPM, Secure Enclave). The server (Relying Party) verifies the response using the credential’s public key. Unlike FIDO U2F (security-key-only second factor), FIDO2 supports first-factor passwordless login with discoverable credentials stored in platform authenticators. ...

May 27, 2026 · 10 min · 2058 words · IAMDevBox
Cross-Device Passkey Authentication: Hybrid Flow Implementation

Cross-Device Passkey Authentication: Hybrid Flow Implementation

Cross-device passkey authentication allows users to log in to an application using a passkey created on one device on another device without needing to enter a password. This method leverages WebAuthn, a standard for strong, secure authentication, enabling seamless and secure access across multiple devices. What is Cross-Device Passkey Authentication? Cross-device passkey authentication simplifies the login process by allowing users to authenticate using a passkey generated on one device (like a smartphone) to sign in on another device (like a laptop). This eliminates the need for remembering passwords and enhances security by relying on cryptographic keys instead of passwords. ...

Feb 25, 2026 · 8 min · 1500 words · IAMDevBox
WebAuthn Conditional UI: Streamlined Passwordless Login Experience

WebAuthn Conditional UI: Streamlined Passwordless Login Experience

WebAuthn Conditional UI is a feature that allows websites to customize the user interface based on the availability of supported authenticators, enhancing the passwordless login experience. This means that if a user has a compatible device or security key, the website can offer a passwordless login option directly, improving usability and security. What is WebAuthn? Web Authentication (WebAuthn) is a web standard that enables strong, phishing-resistant authentication using public key cryptography. It allows users to log in to websites using devices such as smartphones, security keys, or built-in biometric sensors without needing to remember passwords. ...

Feb 06, 2026 · 6 min · 1092 words · IAMDevBox
Passkey Implementation Guide: From Registration to Authentication

Passkey Implementation Guide: From Registration to Authentication

Passkeys are a modern, passwordless authentication method that leverages public key cryptography and biometric data or a PIN to authenticate users securely. They are part of the Web Authentication (WebAuthn) standard and are designed to replace traditional passwords, offering enhanced security and a better user experience. What is a passkey? A passkey is a strong, passwordless authentication method that uses public key cryptography and biometric data or a PIN. Unlike passwords, passkeys cannot be stolen or guessed, making them a more secure option for user authentication. ...

Jan 14, 2026 · 6 min · 1144 words · IAMDevBox
Passkeys and WebAuthn: The Future of Passwordless Authentication

Passkeys and WebAuthn: The Future of Passwordless Authentication

Password management has always been a headache. Remembering complex passwords, dealing with password resets, and securing sensitive data—these tasks can be cumbersome and insecure. Enter passkeys and WebAuthn, the future of passwordless authentication. These technologies promise to simplify user authentication while enhancing security. In this post, I’ll walk you through the challenges, solutions, and practical implementation steps. The Problem: Password Fatigue and Security Risks Traditional password-based systems suffer from several issues: ...

Dec 05, 2025 · 6 min · 1118 words · IAMDevBox
Passkey Login Bypassed via WebAuthn Process Manipulation - SecurityWeek

Passkey Login Bypassed via WebAuthn Process Manipulation - SecurityWeek

Why This Matters Now Visual Overview: sequenceDiagram participant User participant SPA as Single Page App participant AuthServer as Authorization Server SPA->>SPA: 1. Generate code_verifier & code_challenge SPA->>AuthServer: 2. Auth Request + code_challenge AuthServer->>User: 3. Login Page User->>AuthServer: 4. Authenticate AuthServer->>SPA: 5. Authorization Code SPA->>AuthServer: 6. Token Request + code_verifier AuthServer->>AuthServer: 7. Verify: SHA256(code_verifier) == code_challenge AuthServer->>SPA: 8. Access Token Last week, researchers at SquareX revealed a critical flaw in the passkey authentication mechanism, specifically targeting the WebAuthn protocol. This vulnerability could allow attackers to bypass passkey-based login security, even when strong authentication methods like Face ID are used. As passkeys are increasingly adopted by major tech companies, understanding and mitigating this risk is crucial. ...

Nov 28, 2025 · 5 min · 914 words · IAMDevBox
Implementing FIDO2 Authentication with Security Keys in Enterprise Applications

Implementing FIDO2 Authentication with Security Keys in Enterprise Applications

Visual Overview: graph TB subgraph "Authentication Methods" Auth[Authentication] --> Password[Password] Auth --> MFA[Multi-Factor] Auth --> Passwordless[Passwordless] MFA --> TOTP[TOTP] MFA --> SMS[SMS OTP] MFA --> Push[Push Notification] Passwordless --> FIDO2[FIDO2/WebAuthn] Passwordless --> Biometric[Biometrics] Passwordless --> Magic[Magic Link] end style Auth fill:#667eea,color:#fff style MFA fill:#764ba2,color:#fff style Passwordless fill:#4caf50,color:#fff Introduction As phishing attacks and credential breaches continue to threaten digital infrastructure, more organizations are turning to FIDO2 authentication using security keys to enhance login security. Unlike traditional methods that rely on shared secrets (e.g., passwords or OTPs), FIDO2 uses public key cryptography with hardware-backed credentials to provide strong, phishing-resistant authentication. ...

Jun 12, 2025 · 4 min · 712 words · IAMDevBox
How to Use YubiKey for Secure FIDO2 Passwordless Login in Modern Web Apps

How to Use YubiKey for Secure FIDO2 Passwordless Login in Modern Web Apps

Visual Overview: graph TB subgraph "Authentication Methods" Auth[Authentication] --> Password[Password] Auth --> MFA[Multi-Factor] Auth --> Passwordless[Passwordless] MFA --> TOTP[TOTP] MFA --> SMS[SMS OTP] MFA --> Push[Push Notification] Passwordless --> FIDO2[FIDO2/WebAuthn] Passwordless --> Biometric[Biometrics] Passwordless --> Magic[Magic Link] end style Auth fill:#667eea,color:#fff style MFA fill:#764ba2,color:#fff style Passwordless fill:#4caf50,color:#fff Introduction Password-based authentication has long been the weakest link in application security. With phishing, credential stuffing, and password reuse rampant, modern organizations are looking toward passwordless authentication methods that are more secure and user-friendly. ...

Jun 12, 2025 · 4 min · 759 words · IAMDevBox
FIDO Login Explained: How to Build Scalable Passwordless Authentication

FIDO Login Explained: How to Build Scalable Passwordless Authentication

Visual Overview: graph TB subgraph "Authentication Methods" Auth[Authentication] --> Password[Password] Auth --> MFA[Multi-Factor] Auth --> Passwordless[Passwordless] MFA --> TOTP[TOTP] MFA --> SMS[SMS OTP] MFA --> Push[Push Notification] Passwordless --> FIDO2[FIDO2/WebAuthn] Passwordless --> Biometric[Biometrics] Passwordless --> Magic[Magic Link] end style Auth fill:#667eea,color:#fff style MFA fill:#764ba2,color:#fff style Passwordless fill:#4caf50,color:#fff Introduction Traditional login systems—relying on passwords and MFA tokens—are increasingly vulnerable to phishing, credential stuffing, and human error. In contrast, FIDO login offers a modern, passwordless alternative built on public key cryptography, ensuring a seamless yet secure user experience. ...

Jun 11, 2025 · 3 min · 637 words · IAMDevBox
Securing the Future: How Agencies are Embracing Zero Trust and Phishing-Resistant Authentication

Securing the Future: How Agencies are Embracing Zero Trust and Phishing-Resistant Authentication

Securing the Future: How Agencies are Embracing Zero Trust and Phishing-Resistant Authentication Tag: Zero Trust Architecture, Phishing-Resistant Authentication, Cybersecurity, FIDO2, WebAuthn Visual Overview: graph TB subgraph "Zero Trust Architecture" User[User/Device] --> Verify{Identity Verification} Verify --> MFA[Multi-Factor Auth] MFA --> Context{Context Analysis} Context --> Policy{Policy Engine} Policy --> |Allow| Resource[Protected Resource] Policy --> |Deny| Block[Access Denied] Context --> Device[Device Trust] Context --> Location[Location Check] Context --> Behavior[Behavior Analysis] end style Verify fill:#667eea,color:#fff style Policy fill:#764ba2,color:#fff style Resource fill:#4caf50,color:#fff style Block fill:#f44336,color:#fff In the ever-evolving landscape of cybersecurity, agencies are increasingly adopting innovative strategies to safeguard sensitive information. The shift towards Zero Trust Architecture (ZTA) and phishing-resistant authentication methods is a pivotal step in this journey. This blog explores how these strategies are transforming security frameworks and offers insights into their implementation. ...

May 20, 2025 · 3 min · 604 words · IAMDevBox
The Future of Passwordless Authentication: Trends and Implications

The Future of Passwordless Authentication: Trends and Implications

Visual Overview: graph TB subgraph "Zero Trust Architecture" User[User/Device] --> Verify{Identity Verification} Verify --> MFA[Multi-Factor Auth] MFA --> Context{Context Analysis} Context --> Policy{Policy Engine} Policy --> |Allow| Resource[Protected Resource] Policy --> |Deny| Block[Access Denied] Context --> Device[Device Trust] Context --> Location[Location Check] Context --> Behavior[Behavior Analysis] end style Verify fill:#667eea,color:#fff style Policy fill:#764ba2,color:#fff style Resource fill:#4caf50,color:#fff style Block fill:#f44336,color:#fff In an era where digital identities are increasingly valuable, traditional password-based authentication is proving to be a liability. Password fatigue, phishing attacks, and credential stuffing are just a few of the challenges that have pushed organizations to seek more secure and user-friendly alternatives. Enter passwordless authentication—a paradigm shift in how we verify identities. This blog post explores the current state, benefits, challenges, and future trends of passwordless authentication, backed by real-world examples and technical insights. ...

May 18, 2025 · 4 min · 711 words · IAMDevBox