/PasswordlessAuth

Passwordless authentication using Twilio and ASP.NET MVC.

Primary LanguageC#

Passwordless Authentication Using Twilio SMS and ASP.NET MVC

This project is an ASP.NET MVC port of the passwordless authentication system written by Ricky Robinett in this blog post.

Setup

For this backend you'll need a Twilio account that can send and receive SMS messages - create one free here.

Before running the application you'll need to edit the Web.config file to set up some application settings:

<add key="TwilioAccountSid" value="*** Your Twilio AccountSid ***"/>
<add key="TwilioAuthToken" value="*** Your Twilio Auth Token ***"/>
<add key="TwilioPhoneNumber" value="*** Your Twilio Phone Number ***"/>
<add key="YourEmailAddress" value="*** Your Email Address ***"/>
<add key="YourCellphoneNumber" value="*** Your Cellphone Number ***"/>

The Twilio information will be used to send authentication tokens via SMS. Your email address and cellphone number will be used to create a User model object during the migration process' Seed method. Make sure to run Update-Database from the Package Manager Console to apply the Entity Framework Migrations before running.

Meta

  • No warranty expressed or implied. Software is as is.
  • MIT License
  • Made with ♥ by Twilio Philly