ASP 具有表单身份验证的 .NET Web 表单的 MFA 提供程序

MFA Provider for ASP .NET Web Forms with Forms Authentication

我正在寻找一个好的 MFA 提供程序,以将其合并到使用 Forms Authentication 确保安全的旧版 Web Forms 应用程序中。我看到的大多数 MFA 提供商(例如 Authy)似乎都是围绕 ASP .NET Identity 构建的。我正在尝试寻找一种不会对遗留应用程序造成太大影响的解决方案...将遗留应用程序迁移到 ASP .NET Identity 将是一场噩梦。我已经尝试研究 Authy、Auth0、PingID 和 Okta,它们对于我们的用例来说似乎都过大了。我正在尝试寻找可以与 Forms Authentication 一起工作的 MFA 提供程序。

我用https://www.twilio.com/ for my MFA. I am only using the SMS functionality though, so essentially you need to hook up their sms code with your form authentication process. The only difference is that you don't have the identity component (which I highly suggest that you implement). Check out the C# code here for more info on the SMS API procedure: https://www.twilio.com/docs/sms/quickstart/csharp-dotnet-framework.

我了解到以下是针对 MVC 的,但您也可以将代码转换为 Web 窗体:https://www.twilio.com/docs/sms/tutorials/two-factor-authentication-csharp-mvc。 上面的示例也使用了身份框架,但只要看一下使用 SMS 的实现,您就可以将概念迁移到您的 Web 表单中。