如何发现 OpenID IDP,然后使用 PHP 中的 OpenID Provider 进行身份验证
我一直在考虑对我的一个网站实施 OpenID 身份验证,并希望找到最佳的解决方案,使用户尽可能轻松地注册/登录。
通过我在 Google 上的长时间搜索,我发现了一些网站已经对此进行了相当详细的介绍; Google 编写的联合登录可用性研究,因此感觉它们是非常值得信赖的设计模式最佳使用场景。
现在,在实现这一点时,我发现 PHP 对以这种方式完成的登录的支持很少;用户只需输入电子邮件地址,所有 OpenID 详细信息就会自动找到。它还应该与 Google Apps 地址兼容。
Google 提供了一个很好的示例链接 http://www.puffypoodles.com/lso2虽然它的源代码可以下载,但它是用 Java 编写的,我对 Java 还很不熟悉!
所以我想知道是否有人找到了一个以这种方式运行的良好 PHP 实现。 php-openid 看起来太臃肿,lightopenid 看起来很棒,但是不支持这个功能。
谢谢
I've been looking at implementing OpenID authentication to one of my websites and want to find the best possible solution to make it as easy as possible for users to sign up / in.
Through my long searches on Google I found a few sites that have already covered this in quite a bit of detail; Usability Research on Federated Login written by Google, so feel that they are pretty trustworthy design patterns for a best use scenario.
Now in coming to implement this I have found very little PHP support for logins that are done in this manner; the user only has to type in an email address and all of the OpenID details are found automagically. It should also be compatible with Google Apps addresses.
Google provided a link to a great example of this in action http://www.puffypoodles.com/lso2 but although its source code is available to download, it's written in Java, which I'm far from familiar with!
So I was wondering if anyone had found a good PHP implementation that functioned in this manner. php-openid seems too bloated, lightopenid looks great, but doesn't support this functionality.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想指出的是,LightOpenID 现在附带了一个示例提供程序脚本,您可以将其用作基础。
I'd just like to point out that LightOpenID now comes with an example provider script you might use as a base.