DotNetOpenAuth MVC 3 Service Provider Example

Brandon picture Brandon · Apr 2, 2011 · Viewed 11.1k times · Source

I am looking at the OAuthServiceProvider WebForms example that comes with the DotNetOpenAuth project, but would like to implement this into an MVC 3 application instead.

Is there any examples where someone has done this already? I can imagine this is a common scenario that someone has already solved. Google/SO is failing to return any working examples.

Thanks for any assistance.

Answer

Andrew Arnott picture Andrew Arnott · Apr 3, 2011

This project template is an ASP.NET MVC web site that includes an OAuth Service Provider authentication module in it. It also accepts OpenID logins, but you can rip that out if you don't want it. Granted, the project template looks like it throws in a lot of code. It is much more complete and production ready than a very simple sample that perhaps you can find elsewhere.

Although this project template targets MVC 2, I imagine you might be able to tie it over to MVC 3 fairly easily.