Stack Overflow 真正使用的 OpenID 解决方案是什么?
我知道还有其他与此相关的问题,但它们已经过时了,我无法在任何地方找到可靠的答案。
StackOverflow 真正使用什么来验证用户身份?该网站 DotNetOpenAuth 声称确实如此。但对我来说,最(视觉上)相似的是OAuth C# Library 。
那么它真正有什么用呢?或者我怎样才能模仿相同的用户界面?
我想使用 ASP.NET MVC 创建完全相同的 OpenID 身份验证。
I know there are other questions about this, but they are outdated, and I cannot find the answer that would be reliable anywhere.
What is really used by Stack Overflow to autentificate users? The site DotNetOpenAuth claims it is. But to me the most (visually) similar looks to be OAuth C# Library.
So what does it really use? Or how can I mimic the same UI?
I want to create the very same OpenID authentication using ASP.NET MVC.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
StackOverflow 使用 DotNetOpenAuth。
来自博客:
StackOverflow uses DotNetOpenAuth.
From the blog:
我能够在我的网站 (www.mydevarmy.com 上使用
DotNetOpenAuth
获得 OpenID 身份验证a>)在相当短的时间内(请注意,我对 ASP.NET 完全是菜鸟 、MVC、DotNetOpenAuth 等)。DotNetOpenAuth
附带了各种示例,他们甚至有一个 ASP.NET MVC 示例,但他们只在该示例中提供了视图和控制器,并且实际上没有一个模型,即 M 在 MVC 中:)。随后我问了以下问题:MVC 模式中简单登录的组件的职责是什么
那么,非常简单 OpenID 登录在 MVC 中会是什么样子呢?好吧,让我们看一下...
1。您将需要一个模型:
2。您将需要一个控制器:
3。您将需要一个视图:
请注意,我没有向您提供
Profile
视图,但这应该足够简单,易于理解。I was able to get OpenID authentication with
DotNetOpenAuth
on my web site (www.mydevarmy.com) in a fairly short time (note that I am a total noob to ASP.NET, MVC, DotNetOpenAuth, etc).DotNetOpenAuth
comes with various samples and they even have an ASP.NET MVC sample, but they only provide a View and Controller in that sample and they don't actually have a Model which is the M in MVC :). Subsequently I asked the following question on SO:What are the responsibilities of the components in an MVC pattern for a simple login
So how would a VERY SIMPLE OpenID login look like in MVC? Well, let's take a look...
1. You will need a Model:
2. You will need a Controller:
3. You will need a view:
Note that I have not provided you with the
Profile
view, but that should be simple enough to figure out.