liveBook · Manning

Multifactor authentication

As explained in ASP.NET Core in Action, 3e

Multifactor authentication is authentication that requires evidence from multiple independent credential or verification factors.

Multifactor authentication (MFA) requires evidence from multiple independent factors to sign in. Two-factor authentication (2FA) is a subset: for example, a user supplies a password and a code sent to a phone or generated by an authenticator app. section 23.1.2

ASP.NET Core Identity supports MFA as part of its user-management features. After signing in, users can open the default account-management pages and configure MFA with an authenticator app. section 23.1.2 section 23.3.4

Figure 23.10 Logging in with an existing user and managing the user account. The Login page describes how to configure external login providers, such as Facebook and Google. The user-management pages allow users to change their email and password and to configure MFA.
CH23_F10_Lock3

The account-management pages include an option to configure MFA. section 23.3.4

For the enable-MFA page, add a QR code generator using Microsoft’s guidance for TOTP authenticator apps. The default Identity UI provides a starting point, but this setup requires additional customization. section 23.3.4

Offer MFA alongside other protections for user data: store password hashes rather than passwords, guard against weak or compromised passwords, and protect authentication cookies. section 29.4.4

How ASP.NET Core in Action, 3e covers it

How deep it goes
Defines MFA and points to authenticator setup, while deferring QR code generation details to Microsoft’s documentation.
Examples
Uses codes sent by SMS or generated by a mobile authenticator app as sign-in examples.
What you can do after
Operate/configure MFA through ASP.NET Core Identity’s account-management pages and identify the additional QR code setup.
How it connects
Connects MFA with password hashing, account management, and authentication cookies.

Also explained in

Compare how 12 books explain multifactor authentication →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.