Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.

TwilioDevEd/sms2fa-csharp

Repository files navigation

❗ This tutorial has been deprecated, please refer to the new tutorial using Twilio Verify.

Twilio

SMS Two-Factor Authentication

SMS Two-Factor Authentication (SMS-2FA) helps keep your user accounts secure by validating two "factors" of identity. Most login systems only validate a password known by the user. You can make it harder for evildoers to compromise a user account by also validating something a user has, such as their mobile phone.

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/sms2fa-csharp.git
    cd sms2fa-csharp
  2. Rename the sample configuration file and edit it to match your configuration.

    rename SMS2FA.Web\Local.config.example SMS2FA.Web\Local.config

    You can find your AccountSid and AuthToken in your Twilio Console. You will also need a TwilioNumber, you may find it here.

  3. Build the solution.

  4. Create database and run migrations.

    Make sure SQL Server is up and running with LocalDB support.
    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:50046.

Meta

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

Releases

No releases published

Packages

No packages published

Languages