Introduction
This article explains Twitter Authentication for logging into your ASP.NET Web Application developed in MVC Project Templates. I will use Visual Studio 2013 Preview and MVC 5 in my ASP.NET Web Application. As I had described in my earlier article there are various login options with which you can login your MVC Application. Here, I am describing for you how to authenticate your MVC Application with Twitter.
In that context, you will see in the following image that there are three login options available in my application with which you can login:

As you can see, the following are the login options available in my MVC Application and I am using Twitter Authentication in my application:
Twitter Authentication for MVC Application
So, let's start to authenticate the MVC Application with Twitter using the following sections:
- Twitter App Creation
- MVC App Creation
Twitter App Creation
Register yourself as a App Developer in Twitter.

Let's start to create an Twitter app with the following procedure.
Step 1: At first, create an app in Twitter as a developer by https://dev.twitter.com/apps

Step 2: After login, create an app by clicking on "Create a New Application".

Step 3: Enter your unique App name and other necessary details.
Note: You need to enter the CallBack URL and choose Read and Write options to authorize . If you do not have any domain then you can enter an URL like http://www.website.com/
Step 4: After accepting the license agreement, click on "Create your Twitter Application".

Step 5: Copy your Consumer Key and Consumer Secret values from the next window.












Hir MahetaPosted Mar 8, 2018, 3:18 AM
I get email=null in LoginInfo so can not register
Liza VarelaPosted Aug 5, 2014, 4:08 PM
Thank you, that was it!
Liza VarelaPosted Aug 4, 2014, 11:22 AM
Hello, I am a little bit lost here, with Twitter's new authentication policy, if I implement this same steps, I keep receiving an error with the message, certificate validation incorrect. I was reading on Twitter's issues forum, since December 2013, they are requesting an HTTPS site with an SSL twitter certificate, I have been trying to do this for 3 days with no luck, can you help me, I am totally new on this field and I am lost, I do not know what to do, o how to implement this. HELP!