0
votes

We have a company web-site developed in ASP.NET MVC that currently allows our customers to login using login name and password. These customers are in our SQL Server database. The customers once logged in can use our services.

We would like to authenticate our customers using Azure Multi-Factor Authentication feature. How can we implement Microsoft Azure Multi-Factor authentication in our use-case ? Is it required that our website should be deployed on Azure App service.

Thanks, Gagan

1

1 Answers

1
votes

Take a look to this Add sign-in to Microsoft to an ASP.NET MVC web app.

Or

Configure your App Service or Azure Functions app to use Azure AD login for a simplified setup.

You don't need Azure Web Apps to enable MFA, you can enforce MFA using Conditional Access Policies or similar Azure AD features.

You can then add an Id column into your SQL database user table to store the Azure AD User Object Id (which you can obtain from his Azure AD token sub claim) as a reference for future operations.