如何集成 DotNetOpenAuth 和 openid-selector
我使用 Visual Studio 模板创建了一个 DotNetOpenAuth MVC 2 项目,并使其正常工作。但是,登录页面需要很长时间才能加载。不太确定库中到底发生了什么,但似乎有某种 javascript 减慢了登录图像按钮 UI 的快速渲染速度。
我想在客户端上使用 openid 选择器,而不是 DotNetOpenAuth 库中的 MVC 帮助程序。什么样的客户和客户?服务器挂钩此示例中的 HtmlHelper 是否隐藏?
I created a DotNetOpenAuth MVC 2 project using the visual studio template, and have it working. However, the sign in page takes a long time to load. Not quite sure exactly what is going on in the library, but it seems like there is some kind of javascript slowing down the login image button UI from rendering quickly.
I'd like to instead use the openid-selector on the client, rather than the MVC helpers from the DotNetOpenAuth library. What kinds of client & server hooks is the HtmlHelper in this example hiding?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这篇文章展示了如何集成 DotNetOpenAuth 和 openid-selector:
http://blog.tchami.com/post/ASPNET-MVC -2-and-OpenID.aspx
This post shows how to integrate DotNetOpenAuth and openid-selector:
http://blog.tchami.com/post/ASPNET-MVC-2-and-OpenID.aspx
openid-selector 客户端(如果您谈论的是 StackOverflow 使用的客户端)根本没有服务器端挂钩,就像 DNOA 中使用的 HtmlHelper 一样,因为 openid-selector 不会向服务器发出 AJAX 回调。 DNOA 的选择器控件大量使用 AJAX 来为用户提供自动登录体验、输入标识符时自动发现等。
简而言之,是的,openid-selector(SO 风格)更简单并且效果更好也有DNOA。
是的,DNOA 的内置 AJAX 选择器加载速度更慢。这是我(或志愿者)仍然需要加快速度的事情。
The openid-selector client, if you're talking about the one like StackOverflow uses, has no server-side hooks at all in the same way that the HtmlHelper's in DNOA use, since the openid-selector makes no AJAX calls back to the server. DNOA's selector control uses AJAX a lot to provide users with an auto-login experience, auto-discovery as they type in the identifier, etc.
So in short, yes, the openid-selector (SO-style) is much simpler and works great with DNOA as well.
And yes, DNOA's built-in AJAX selector loads more slowly. That's something that I (or a volunteer) still need to work on speeding up.