Authentication Drupal域访问认证

Authentication Drupal域访问认证,authentication,drupal-6,drupal-domain-access,Authentication,Drupal 6,Drupal Domain Access,我正在使用城市站点的域访问模块。它们有很多子域,这些子域可以很好地进行身份验证。用户可以访问任何子域fire。#######city.gov/user,并可以正常登录 现在,我们使用相同的访问模块完全共享另一个域的内容。您可以访问登录页面######lovecity.com/user并尝试登录。当您这样做时,它会拒绝您的访问。从中我们可以看到,auth令牌仅适用于######city.gov。如果您能为这两个域提供身份验证方面的帮助,我们将不胜感激 经过进一步研究,我在自述文件中发现了这一点:

我正在使用城市站点的域访问模块。它们有很多子域,这些子域可以很好地进行身份验证。用户可以访问任何子域fire。#######city.gov/user,并可以正常登录


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

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

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.
这可不像我想的那样是一只虫子。我在这里回答这个问题是为了让其他人可以从我花在解决这个问题上的时间中学习