Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Implementing Multifactor Authentication

You're reading from   Implementing Multifactor Authentication Protect your applications from cyberattacks with the help of MFA

Arrow left icon
Product type Paperback
Published in Jun 2023
Publisher Packt
ISBN-13 9781803246963
Length 550 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Marco Fanti Marco Fanti
Author Profile Icon Marco Fanti
Marco Fanti
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part 1: Introduction
2. Chapter 1: On the Internet, Nobody Knows You’re a Dog FREE CHAPTER 3. Chapter 2: When to Use Different Types of MFA 4. Part 2: Implementing Multifactor Authentication
5. Chapter 3: Preventing 99.9% of Attacks – MFA with Azure AD and Duo 6. Chapter 4: Implementing Workforce and Customer Authentication Using Okta 7. Chapter 5: Access Management with ForgeRock and Behavioral Biometrics 8. Chapter 6: Federated SSO with PingFederate and 1Kosmos 9. Chapter 7: MFA and the Cloud – Using MFA with Amazon Web Services 10. Chapter 8: Google Cloud Platform and MFA 11. Chapter 9: MFA without Commercial Products – Doing it All Yourself with Keycloak 12. Part 3: Proven Implementation Strategies and Deploying Cutting-Edge Technologies
13. Chapter 10: Implementing MFA in the Real World 14. Chapter 11: The Future of (Multifactor) Authentication 15. Index 16. Other Books You May Enjoy Appendix A: Installing the Java Software Development Kit 1. Appendix B: Custom App Integration with Azure AD 2. Appendix C: Installing Apache Tomcat Software

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime