【问题标题】:Simplesamlphp_auth module in Drupal 8 + Simplesaml libraryDrupal 8 + Simplesaml 库中的 Simplesamlphp_auth 模块
【发布时间】:2018-10-13 07:56:42
【问题描述】:

我已成功安装 simplesamlphp 并将我的系统配置为 SP。并且还能够登录到 IDP。现在我想将它集成到我的 drupal8 项目中。 所以按照安装说明,我在我的drupal项目模块文件夹中下载了simplesamlphp_auth模块并刷新了管理面板来安装它,抛出这样的错误-

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">SimpleSAML\Error\CriticalConfigurationError</em>: The configuration (config/config.php) is invalid: Missing configuration file in <em class="placeholder">SimpleSAML\Error\CriticalConfigurationError::fromException()</em> (line <em class="placeholder">78</em> of <em class="placeholder">vendor/simplesamlphp/simplesamlphp/lib/SimpleSAML/Error/CriticalConfigurationError.php</em>). <pre class="backtrace">SimpleSAML_Configuration::getInstance() (Line: 43)

SimpleSAML\Auth\Simple->__construct('default-sp')(第 59 行) Drupal\simplesamlphp_auth\Service\SimplesamlphpAuthManager->__construct(Object)(行:262) Drupal\Component\DependencyInjection\Container->createService(Array, 'simplesamlphp_auth.manager') (行:171) Drupal\Component\DependencyInjection\Container->get('simplesamlphp_auth.manager', 1) (行:480) Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)(行:230) Drupal\Component\DependencyInjection\Container->createService(Array, 'simplesamlphp_auth_event_subscriber') (第 171 行) Drupal\Component\DependencyInjection\Container->get('simplesamlphp_auth_event_subscriber')(第 105 行) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.request', Object)(第 127 行) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)(第 68 行) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)(第 57 行) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1)(第 47 行) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1)(第 99 行) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1)(第 78 行) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1)(第 47 行) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1)(行:50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1)(第 23 行) Stack\StackedHttpKernel->handle(Object, 1, 1)(行:664) Drupal\Core\DrupalKernel->handle(Object)(第 19 行)

请帮我解决这个问题。

【问题讨论】:

  • 在vendor/simplesaml/simplesaml/目录下会有一个名为config的目录,确认config.php文件是否存在!
  • 谢谢@vishwa。是的,这个错误是因为配置和元数据文件夹是空的。已解决。

标签: drupal-8 simplesamlphp


【解决方案1】:

在这个问题上花了一整天的时间后,我终于通过将 docroot/simplesamlphp/config 和 metadata 文件夹复制到 vendor/simplesamlphp/config 和元数据来解决了这个错误。

谢谢。

【讨论】:

    猜你喜欢
    • 2017-03-18
    • 1970-01-01
    • 2021-12-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-09
    • 1970-01-01
    • 2015-02-21
    相关资源
    最近更新 更多