Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Web API login with Facebook & Twitter

I'm going to be diving into ASP.NET Web API and would like to know if there is an easy way to have my users login with Facebook and Twitter?

like image 289
Ryan Avatar asked Feb 20 '23 08:02

Ryan


2 Answers

With the new release of Visual Studio 2012 and .NEt 4.5 Microsoft has gone full on with OAuth/OpenID.

Article with examples on how to support Facebook, Twitter, and Google accounts (there are 3 more blog articles linked at the bottom).

And here's a sweet little video from S. Hanselmann no less.

like image 137
JSancho Avatar answered Feb 22 '23 02:02

JSancho


Definitely have a look at DotNetOpenAuth. It's an open source library for .Net which supports OpenID, OAuth v1/v2 and InfoCards. There's some nice documentation and sample code on the site as well as in various blogs (such at this one) that should get you pointed in the right direction.

like image 29
ajk Avatar answered Feb 22 '23 00:02

ajk