
See Best practices for deploying passwords and other sensitive data to ASP.NET and Azure. The account and credentials are added to the code above to keep the sample simple. Security - Never store sensitive data in your source code. When we deploy to Azure, we can store the values securely in the app settings section on the web site configure tab. To keep things simple we will store these values in the web.config file. Make the credentials and sender phone number available to the app. Transferring SMS provider credentials into app

We will later store this value in the web.config file within the key "SMSAccountFrom". Within the Unlock Originators Menu, unlock one or more Originators or choose an alphanumeric Originator (Not supported by all networks). įrom the Numbers tab, copy your Twilio phone number. We will later store these values in the web.config file within the keys "SMSAccountIdentification" and "SMSAccountPassword". The following service reference needs to be added:įiguring out SMS Provider User credentialsįrom the Dashboard tab of your Twilio account, copy the Account SID and Auth token.įrom your account settings, navigate to Userkey and copy it together with your self-defined Password. In the Package Manager Console, enter the following command: Install-Package Twilio Installing additional packages or adding service references This tutorial provides instructions for using either Twilio or ASPSMS but you can use any other SMS provider.Ĭreating a User Account with an SMS provider

Later in the tutorial we will deploy to Azure. If you'd like to host the app in Azure, leave the check box checked.

