DotNetOpenAuth oAuth in ASP.NET MVC

nikmd23 picture nikmd23 · May 26, 2010 · Viewed 18.4k times · Source

I'm trying to understand how to apply the oAuth consumer library from DotNetOpenAuth in the context of ASP.NET MVC.

oAuth is new to me, and the library doesn't seem very simple. Does anyone have a sample of leveraging this library, for this usage, in ASP.NET MVC?

Answer

Nathan Fisher picture Nathan Fisher · May 26, 2010

Have a look at Rob Conery's TekPub ASP.Net MVC 2.0 Starter Site. He has setup DotNetOpenAuth as part of that. It should point you in the right direction

EDIT
My assumption was based on the the fact the OpenID and OAuth are the same. They are not the same but complimentary ideas. OpenId is about Authentication where as OAuth is about Authorization.

While not directly related to ASP.NET MVC the TweetSharp Library has an OAuth implementation written in C# that may be of some use.

TweetSharp OAuth workflow
Simple OAuth integration for Twitter in ASP.NET MVC

OAuth with Silverlight for Windows Phone 7