This application example demonstrates how to use Authy as the two-factor authentication provider in an ASP.NET MVC project using ASP.NET Identity.
This project is built using ASP.NET MVC Framework.
-
First clone this repository and
cd
into it.git clone [email protected]:TwilioDevEd/authy2fa-csharp.git cd authy2fa-csharp
-
Rename the sample configuration file and edit it to match your configuration.
rename Authy2FA.Web\Local.config.example Authy2FA.Web\Local.config
You can find your Authy API Key in your Authy Dashboard.
-
Build the solution.
-
Create database and run migrations.
Make sure SQL Server is up and running.
In Visual Studio, open the following command in the Package Manager Console.Update-Database
-
Run the application.
-
Check it out at http://localhost:49217.
-
Expose application to the wider internet. To start using ngrok on our project you'll have to execute the following line in the command prompt.
ngrok http 49217 -host-header="localhost:49217"
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.