如何让一个已有的网站(拥有庞大的用户群)成为openID提供商?

发布于 2024-09-30 14:15:52 字数 321 浏览 0 评论 0原文

我想建立一个现有的网站,该网站作为 openID 提供商拥有庞大的用户群。虽然我找到了大量关于这个主题的文章,但我可以看到所有文章都讨论指向现有 openID 提供商服务器,如 Verisign、openID 等。但我正在寻找这些,

  1. 设置 自己的openID服务器
  2. 如何使现有网站成为openID提供商?
  3. 网站的现有用户如何将其现有的 id 充当 openID?

提前致谢

I would like to make an existing website which is having a huge user base as an openID provider. Though I find tons of articles regarding this subject, I could see all the articles talk about pointing to an existing openID provider server like Verisign, openID, etc. But I looking for these,

  1. Setting up own openID server
  2. How to enable an existing website to be an openID provider?
  3. How the existing users of the website to give their existing id to act as an openID?

Thanks in advance

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

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

发布评论

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

评论(4

故人如初 2024-10-07 14:15:52

OpenID 协议位于此处。 在您疯狂之前,您需要解决一些重要的细节。按重要性排序:

  1. 身份验证方案:您计划如何保护您的用户免受中间人攻击。 OpenID 没有指定这个细节,但可能会提供一些建议和想法。用户从另一个网站跳到您的网站,因此您需要提供合理的保证,确保他们访问的网站确实是您的网站。
  2. 隐私政策:您计划如何让用户控制哪些帐户元数据将与其他网站共享。如果您共享所有内容,一些用户将会感到不安。如果你什么都不分享,就会给他们带来不便。查看 MyOpenID 提供程序以获取有关如何管理此问题的想法。
  3. 由您的用户控制的独特的静态 URL。例如,http://username.mysite.com。用户需要能够控制在该 URL 上显示的内容(如果不是他们的话)。

如果你不能提供这些,你就不应该做openid。注意:在开发者页面上,有一系列涵盖协议不同方面的技术文档——一些其中是可选的:

  • OpenID 身份验证
  • 简单注册
  • 属性 Exchange
  • 提供商身份验证策略扩展

这将是第一个寻求帮助的地方。

The OpenID protocol is located here. There are a few important details you need to iron out before you go crazy. In order of importance:

  1. Authentication scheme: how do you plan to protect your users from man-in-the-middle attacks. OpenID does not specify this detail, but may provide some recommendations and ideas. The user is bounced from another site to yours, so you need to provide reasonable insurance that the site they got to is really yours.
  2. Privacy policy: how do you plan to let the users control what account meta-data will be shared with other sites. If you share everything, several users will be upset. If you share nothing, you will inconvenience them. Check out the MyOpenID provider for ideas on how to manage this.
  3. Unique restful URLs that are controlled by your users. For example, http://username.mysite.com. The user needs to be able to control what gets displayed at that URL if it is not them.

If you can't provide these, you shouldn't do openid. NOTE: on the Developers page, there are a series of technical documents that cover different aspects of the protocol--some of them are optional:

  • OpenID Authentication
  • Simple Registration
  • Attribute Exchange
  • Provider Authentication Policy Extention

That would be the first place to go for help.

兲鉂ぱ嘚淚 2024-10-07 14:15:52

您可以使用此资源

当我在 PHP 网站上实现 openID 时,此链接非常有帮助:

You could use this resource

When I implemented openID on a PHP site, this link was very helpful:

落在眉间の轻吻 2024-10-07 14:15:52

请参阅 OpenID 基金会网站上标题为“成为 OpenID 提供商”的页面。它为开发人员提供软件库

See the page titled "Become an OpenID Provider" at the OpenID Foundation website. It provides software libaries for developers.

信仰 2024-10-07 14:15:52

您没有指定站点的编码语言,因此最好的起点是查看允许您运行身份服务器的现有库 openid 库。如果您使用的是 php 框架,那么大多数框架都有自己的模块(例如 zend、symfony)。

You don't specify what language your site is coded in so the best place to start would be to look at the existing libraries that allow you to run an identity server openid libraries. If you're using a php framework then most have their own module (zend, symfony for example).

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