How do you disable TOTP authentication when using identity core authentication

JG 1 Reputation point
2022-08-25T23:48:49.737+00:00

I have a net standard 6 mvc application that utilizes asp.net core identity for authentication. I want to set up 2fa but I don't want to use an authenticator installed on the end users smart phones. I want to stick with sms and email messaging where a 6 digit code is provided for authentication. The issue I am facing is that cannot disable TOTP. I think that using AddTokenProvider in place of AddDefaultTokenProvider in program.cs will work but I can't find suitable literature on how to implement a custom 2fa token provider. Please let me know if anybody has come across a fix for using a custom token provider for 2fa login.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SurferOnWww 1,906 Reputation points
    2022-08-26T01:03:39.387+00:00

    Hope the following document gives you some idea although it is for ASP.NET Core 1.1:

    Two-factor authentication with SMS in ASP.NET Core
    https://learn.microsoft.com/en-us/aspnet/core/security/authentication/2fa?view=aspnetcore-1.1

    0 comments No comments