在多个网站上签名
我有 2 个网站(example.com、ex2.com)。财务是 1 个站点,1 个分贝。当用户在 ex2.com 中唱歌时,他也在 example.com 中唱歌。这怎么办?
PS ZF可以做到这一点吗?
我发现了一篇关于这个主题的非常有趣的文章。作者给出了一些如何实现多域认证的想法。 http://codeutopia .net/blog/2008/09/25/sharing-authentication-over-multiple-sites-single-sign-on/
i have 2 sites (example.com, ex2.com). Fisical is a 1 site with 1 db. When user sing in ex2.com, he was sing in example.com too. How do this?
P.S. Can do this with ZF?
I found a very interesting article on this topic. The author gives some ideas how to implement Multidomain authentication.
http://codeutopia.net/blog/2008/09/25/sharing-authentication-over-multiple-sites-single-sign-on/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你研究过 OpenID 吗?您可以锁定 OpenID 使用者“ex2”,以仅允许来自“example.com”OpenID 提供商的登录。
我也在挖掘这个话题。不久前,我已经做了自己的实现,并且得到了可怕的结果错误。
目前我想知道是否要设置一个自己的 OpenID 提供商并锁定消费者站点以仅接受它。另一种选择是另一个自己的实现,具有 CAS 样式设置,其中仅传递哈希值通过浏览器,用户验证是在后台使用哈希作为一次性密钥在服务器到服务器之间完成的。
我还不确定该选择哪一个,或者第三种选择会更好。
Have you looked into OpenID? You could lock OpenID consumer "ex2" to allow logins only from your "example.com" OpenID provider.
I am also digging the subject. Some time ago, I already did my own implementation and got it terribly wrong.
At the moment I am wondering whether to setup an own OpenID provider and locking consumer sites to accept only it. Another alternative would be yet another own implementation with a CAS style setup, where only a hash is passed via the browser, and the user verification is done server-to-server in the background using the hash as a disposable key.
I am not yet sure which one to pick or would some third alternative be better.
您可以查看类似 http://cosign.sourceforge.net/ 的内容。 Cosign 使您能够为多个站点创建单点登录。它不是 Zend 特有的,但应该可以工作。
You could take a look into something like http://cosign.sourceforge.net/. Cosign enables you to create a single point of login for multiple sites. It's not specific to Zend but should work.