0

我正在将域访问模块https://drupal.org/project/domain用于城市站点。他们有很多子域,这些子域可以很好地进行身份验证。用户可以转到任何子域火。#####city.gov/user 并且能够正常登录。

现在我们使用相同的访问模块来完全共享另一个域的内容######lovecity.com。您可以访问登录页面######lovecity.com/user 并尝试登录。当你这样做时,它会给你一个拒绝访问。从我们可以看到身份验证令牌仅适用于#####city.gov。任何帮助使身份验证对两个域都有效,我们将不胜感激。

4

1 回答 1

1

经过进一步研究,我在自述文件中发现了这一点:

1.4.1 登录多个域

The Domain Access module allows the creation of domains with different
hosts.  However, security standards dictate that cookies can only be
read from the issuing domain.

As a result, you may configure your site as follows, but when you do so,
users cannot be logged through a single sign in.

  example.com
  one.example.com
  myexample.com
  thisexample.com

While example.com and one.example.com can share a login cookie, the
other two domains cannot read that cookie.  This is an internet standard,
not a bug.

Note: See the INSTALL.txt for instructions regarding Drupal's default
cookie handling.

这不是我想象的错误。我在这里回答它,以便其他人可以从我尝试解决它所花费的时间中学习。

于 2013-09-26T15:33:57.223 回答