❗ This tutorial has been deprecated, please refer to the new tutorial using Twilio Verify.
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.
This project is built using ASP.NET MVC Framework.
-
First clone this repository and
cdinto it.git clone git@github.com:TwilioDevEd/sms2fa-csharp.git cd sms2fa-csharp -
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
AccountSidandAuthTokenin your Twilio Console. You will also need aTwilioNumber, you may find it here. -
Build the solution.
-
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
-
Run the application.
-
Check it out at http://localhost:50046.
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.