Book Image

Implementing Multifactor Authentication

By : Marco Fanti
Book Image

Implementing Multifactor Authentication

By: Marco Fanti

Overview of this book

MFA has emerged as an essential defense strategy in the wide-ranging landscape of cybersecurity. This book is a comprehensive manual that assists you in picking, implementing, and resolving issues with various authentication products that support MFA. It will guide you to bolster application security without sacrificing the user experience. You'll start with the fundamentals of authentication and the significance of MFA to familiarize yourself with how MFA works and the various types of solutions currently available. As you progress through the chapters, you'll learn how to choose the proper MFA setup to provide the right combination of security and user experience. The book then takes you through methods hackers use to bypass MFA and measures to safeguard your applications. After familiarizing yourself with enabling and managing leading cloud and on-premise MFA solutions, you’ll see how MFA efficiently curbs cyber threats, aided by insights from industry best practices and lessons from real-world experiences. Finally, you’ll explore the significance of innovative advancements in this domain, including behavioral biometrics and passkeys. By the end of the book, you'll have the knowledge to secure your workforce and customers, empowering your organization to combat authentication fraud.
Table of Contents (20 chapters)
1
Part 1: Introduction
4
Part 2: Implementing Multifactor Authentication
12
Part 3: Proven Implementation Strategies and Deploying Cutting-Edge Technologies

Keycloak and MFA

The simplest way to enable MFA in Keycloak is on a user-by-user basis. When a user is created, an administrator can also configure additional steps that must be performed during the first login. Those include one-time password (OTP) and Web Authentication (WebAuthn) registration:

  1. In the Keycloak console, go to Users | Create User. Enter a value in the Username field and select Configure OTP in the Required user actions drop-down menu:
Figure 9.42 – The Create user page

Figure 9.42 – The Create user page

  1. Click Create:
Figure 9.43 – The Create user page

Figure 9.43 – The Create user page

After setting the credentials for the user, let’s try accessing the same application we tested before.

  1. Open http://localhost:3000/. Enter the username and password for the user we just created. After the sign-in page, the Mobile Authenticator Setup page opens, as this is the first time this user is logging in, and the user doesn’t have...