Mid ASP.NET Core

Two‐factor authentication (2FA)?

Supported out of the box in ASP.NET Core Identity.

Options:

  • SMS (via provider)
  • Email
  • Authenticator app (TOTP)

Enable via Identity configuration:

services.Configure<IdentityOptions>(options => {

options.SignIn.RequireConfirmedEmail = true;

});

Use SignInManager<T> to handle verification and token generation.

Filters & Middleware Overlaps

More from ASP.NET Core Tutorial

All questions for this course