在ASP.net&QUOT实施的OpenID;妥善" - 会员或身份验证提供程序? [英] Implementing OpenID in ASP.net "Properly" - Membership or Authentication Provider?

查看:90
本文介绍了在ASP.net&QUOT实施的OpenID;妥善" - 会员或身份验证提供程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有几种方法可以使用​​OpenID的上ASP.net网站,但他们都不使用成员和认证供应商的现有机制。

There are several ways to use OpenID on ASP.net sites, but none of them seem to use the existing mechanism of Membership and Authentication Providers.

我不知道正确的方法是创建一个完全依靠OpenID的网站?继续使用窗体身份验证,但是实现,做对的OpenID查找的SqlMembershipProvider的的变种?

I wonder what the proper way would be to create a site that solely relies on OpenID? Continuing to use Forms Authentication but implementing a variant of the SqlMembershipProvider that does the lookup against OpenID?

或者我会去更深层次的原因写我自己FormsAuthenticationModule?这似乎有点过于裸露的骨头,因为(据我所知)窗体身份验证可以抬起头来对任何数据源。

Or would I go one level deeper and write my own FormsAuthenticationModule? That seems to be a bit too bare-bones, as (to my knowledge) Forms Authentication can looked up against any data source.

还是有第三种方式,保持FormsAuthenticationModule但是使它做对的OpenID查找?

Or is there a third way, keeping the FormsAuthenticationModule but making it do the lookup against OpenID?

由于这是一个ASP.net MVC应用程序我没有使用内置登录的WebForms控制,如果有差别。

As this is for an ASP.net MVC application I have no use for the built-in Login WebForms Controls if that makes a difference.

推荐答案

会员API是ASP.NET定义了所有的OpenID,这可能是为什么你没有看到它使用许多系统不合身。我还没有看到需要使用使用OpenID成员提供商还,所以它并没有真正成为一个问题。一些试图使一个项目成员资格提供模型拟合与OpenID是<一个href=\"http://$c$c.google.com/p/dotnet-membership-provider/\">http://$c$c.google.com/p/dotnet-membership-provider/,但它并不像它的最近维持。

The Membership API that ASP.NET defines doesn't fit well at all with OpenID, which is probably why you don't see many systems using it. I haven't seen a need to use the Membership provider with OpenID yet, so it hasn't really become an issue. One project that attempted to make the Membership provider model fit with OpenID is http://code.google.com/p/dotnet-membership-provider/, but it doesn't look like it's been maintained recently.

由于womp说​​,你不需要重做FormsAuthenticationModule。它的工作原理非常顺利地使用OpenID的。

As womp said, you don't need to redo the FormsAuthenticationModule. It works perfectly well with OpenID.

退房的<一个href=\"http://www.ohloh.net/p/dotnetopenauth/download?package=DotNetOpenAuth+project+templates\">project 的模板来使用 DotNetOpenAuth 看到的东西怎么能没有成员提供工作。

Check out the project templates that come with DotNetOpenAuth to see how things can work without the membership provider.

这篇关于在ASP.net&QUOT实施的OpenID;妥善&QUOT; - 会员或身份验证提供程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆