简体   繁体   English

DotNetOpenAuth MVC 3服务提供商示例

[英]DotNetOpenAuth MVC 3 Service Provider Example

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. 我正在查看DotNetOpenAuth项目附带的OAuthServiceProvider WebForms示例,但是希望将其实现为MVC 3应用程序。

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. Google / SO未能返回任何有效的示例。

Thanks for any assistance. 谢谢你的帮助。

This project template is an ASP.NET MVC web site that includes an OAuth Service Provider authentication module in it. 此项目模板是一个ASP.NET MVC网站,其中包含OAuth服务提供程序身份验证模块。 It also accepts OpenID logins, but you can rip that out if you don't want it. 它还接受OpenID登录,但如果您不想要它,可以将其删除。 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. 虽然这个项目模板以MVC 2为目标,但我想你可以很容易地将它与MVC 3联系起来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM