![microsoft webmatrix git two factor microsoft webmatrix git two factor](https://hgminerva.files.wordpress.com/2012/12/w2.png)
When we execute the program, a QR code will be generated in this View. You will find Scripts at the end of the file. Download the qrcode.js JavaScript library from and put it into the “Open the “Views\Manage\EnableAuthenticator.cshtml” file.
![microsoft webmatrix git two factor microsoft webmatrix git two factor](http://johnatten.com/wp-content/uploads/imported/webmatrix-git-option-close-before-click.png)
We will be using a QR code to configure and sync the Google authenticator app with our web app.
![microsoft webmatrix git two factor microsoft webmatrix git two factor](https://www.dotnetcurry.com/images/aspnet/16102010image_2.jpg)
Adding QR Codes to configure two-factor authentication Now, click OK again to create your web app. Select “Individual User Account” and click OK. A “Change Authentication” dialog box will open. Then, select the “Web application (Model-View-Controller)” template. Select “.NET Core” and “ASP.NET Core 2.0” from these drop-downs. You can see two drop-down menus at the top left of the template window. Name the project “TwoFactAuth” and press OK.Īfter clicking OK, a new dialog will open asking you to select the project template. Then, select “ASP.NET Core Web Application” from the available project types. NET Core inside the Visual C# menu from the left panel. After selecting the project, a “New Project” dialog will open. Open Visual Studio and select File > New > Project. Install the latest version of Visual Studio 2017 Community Edition from here.īefore proceeding, I would recommend that you get the source code from GitHub Create the MVC Web Application.The key generated in the app will be unique to your userID, and is a time-based one-time password (TOTP) - that is, it will expire after a certain time. When you login to the web application, you have to enter a six-digit pin that will be generated in the app to finish the two-factor authentication. To use it, you need to configure the Google Authenticator app on your smartphone using the QR code generated in the web app.
#MICROSOFT WEBMATRIX GIT TWO FACTOR HOW TO#
In this article, we are going to learn how to perform two-factor authentication in an ASP.NET Core application using the Google Authenticator app.