11

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.

Kevin LaBranche
  • 20,490
  • 2
  • 49
  • 75
Brandon
  • 9,812
  • 15
  • 59
  • 95

1 Answers1

12

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.

Andrew Arnott
  • 74,820
  • 24
  • 127
  • 163
  • 1
    Thanks for the template. This gives me a good start in the right direction! Thank for the wonderful OAuth tools you have written! – Brandon Apr 03 '11 at 21:02
  • Andrew, thanks for the tool. Do you know of a simple OAuth consumer stub that I can use to poke this web app? I still can't really see the OAuth in action. – flipdoubt May 05 '11 at 16:09
  • Yes, DotNetOpenAuth comes with an OAuthConsumerWpf sample app that lets you play the part of an OAuth consumer for an arbitrary OAuth service provider. – Andrew Arnott May 08 '11 at 04:48
  • Any chance this could be updated for VS2012? It won't open for me. – Dan Friedman Sep 25 '13 at 19:12