Skip to content

Latest commit

 

History

History
executable file
·
61 lines (41 loc) · 1.95 KB

README.md

File metadata and controls

executable file
·
61 lines (41 loc) · 1.95 KB
Twilio

Two-Factor Authentication with Authy

This application example demonstrates how to use Authy as the two-factor authentication provider in an ASP.NET MVC project using ASP.NET Identity.

Read the full tutorial here!

Local Development

This project is built using ASP.NET MVC Framework.

  1. First clone this repository and cd into it.

    git clone [email protected]:TwilioDevEd/authy2fa-csharp.git
    cd authy2fa-csharp
  2. 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.

  3. Build the solution.

  4. 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
  5. Run the application.

  6. Check it out at http://localhost:49217.

  7. 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"

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.