Introduction

Follow the tutorials:

This is the source code with debug helpers that goes with the above tutorials.

Building the Sample

The first time you build the solution NuGet will download missing libraries.

You must create a file in called AppSettingsSecrets.config.ignore which will contain the <appSettings> secrets for SendGrid, Twilio and Google authentication. This must be in the same folder as the root web.config file. See the web.config file. See the sample markup below.

 

 

XML
Edit|Remove
<appSettings   
   <!-- SendGrid--> 
   <add key="mailAccount" value="your account" /> 
   <add key="mailPassword" value="your password" /> 
   <!-- Twilio--> 
   <add key="TwilioSid" value="Twilio SID" /> 
   <add key="TwilioToken" value="Twilio Token" /> 
   <add key="TwilioFromPhone" value="+12065551234" /> 
 
   <add key="GoogClientID" value="1234.apps.googleusercontent.com" /> 
   <add key="GoogClientSecret" value="111111" /> 
</appSettings>
This tutorial was written  by  Rick Anderson  ( Twitter: @RickAndMSFT ).
Clicking on the  Remember this browser check box will exempt you from needing to use 2FA  to log on with that computer and browser. Enabling 2FA and clicking on the  Remember this browser will provide you with strong 2FA protection from  malicious users trying to access your account, as long as they don't have access  to your computer. You can do this on any private machine you regularly use. By  setting  Remember this browser, you get the added security of 2FA from computers  you don't regularly use, and you get the convenience on not having to go through  2FA on your own computers.