Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
好吧,该页面上列出的大多数选项都没有提供商支持,所以我认为您的选项可以归结为 OpenID Enabled 的 php-openid 或 Zend_OpenId。我自己偏爱 openidenabled 库,但话又说回来,我是编写它们的团队之一。 php-openid 通常与更广泛的 PHP 版本兼容,并且其测试覆盖范围相当广泛。
我对 Zend 产品了解不多,但如果您足够幸运,不需要 PHP 4 兼容性并且喜欢他们所做的框架,那么它可能是合适的。
Well, most of the options listed on that page don't have provider support, so I think your options come down to OpenID Enabled's php-openid or Zend_OpenId. I'm partial to the openidenabled libraries myself, but then again, I was on the team that wrote them. php-openid is generally compatible with a wider range of PHP versions, and its test coverage is pretty extensive.
I don't really know much about the Zend offering, but it might be appropriate if you're fortunate enough to not need PHP 4 compatibility and like that framework thing they do.
首先浏览官方 OpenID 开发者网站 @ http://openid.net/add -openid/become-a-provider/
在那里,它为您提供了三个选项:
选项 1 可能不是您想要的选项因为,因为您希望您的网站成为您上面暗示的提供商。
如果您有时间和能力来实施,选项 3 是可以的。尝试浏览 http://openid.net/specs/openid-authentication-2_0.html 看看您的开发团队是否能够忍受。
最后是选项2,我认为这是最好的选择。 http://openid.net/developers/libraries/#php 中列出了足够的 PHP 库选择。我想使用这些库之一来扩展现有的身份验证机制以提供 OpenID 身份验证服务会很容易,但我不能确定,因为我还没有尝试过其中任何一个。
祝你好运,万事如意!
Start with browsing through the official OpenID developer website @ http://openid.net/add-openid/become-a-provider/
There, it gives you three options:
Option 1 may not be the one you would aiming for, since you want your site to be a provider as you have hinted above.
Option 3 is ok if you have the time and capacity to implement it. Try going through http://openid.net/specs/openid-authentication-2_0.html and see if your development team can stomach that.
Finally, there's option 2, which I think the best choice. There are enough choices of PHP libraries listed in http://openid.net/developers/libraries/#php . I imagine it would be easy to use one of these libraries to extend your existing authentication mechanism to provide OpenID authentication service but I can't be sure as I have not tried any of them yet.
Good luck and godspeed!