PHP 的 OpenID 提供程序库建议

发布于 2024-08-18 01:43:57 字数 1536 浏览 11 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

允世 2024-08-25 01:43:57

好吧,该页面上列出的大多数选项都没有提供商支持,所以我认为您的选项可以归结为 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.

且行且努力 2024-08-25 01:43:57

首先浏览官方 OpenID 开发者网站 @ http://openid.net/add -openid/become-a-provider/

在那里,它为您提供了三个选项:

  • 外包给第三方提供商
  • 使用现有的库或插件
  • 自己阅读规范和 OpenID

选项 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:

  • Outsource to a third-party provider
  • Use an existing library or plugin
  • Read the specs and OpenID yourself

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文