Drupal 8 + Simplesaml库中的Simplesamlphp_auth模块

时间:2018-05-03 05:34:52

标签: drupal-8 simplesamlphp

我已成功安装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-&gt; __ construct('default-sp')(行:59) Drupal \ simplesamlphp_auth \ Service \ SimplesamlphpAuthManager-&gt; __ construct(Object)(行:262) Drupal \ Component \ DependencyInjection \ Container-&gt; createService(Array,'simplesamlphp_auth.manager')(行:171) Drupal \ Component \ DependencyInjection \ Container-&gt; get('simplesamlphp_auth.manager',1)(Line:480) Drupal \ Component \ DependencyInjection \ Container-&gt; resolveServicesAndParameters(Array)(Line:230) Drupal \ Component \ DependencyInjection \ Container-&gt; createService(Array,'simplesamlphp_auth_event_subscriber')(行:171) Drupal \ Component \ DependencyInjection \ Container-&gt; get('simplesamlphp_auth_event_subscriber')(行:105) Drupal \ Component \ EventDispatcher \ ContainerAwareEventDispatcher-&gt; dispatch('kernel.request',Object)(行:127) Symfony \ Component \ HttpKernel \ HttpKernel-&gt; handleRaw(Object,1)(Line:68) Symfony \ Component \ HttpKernel \ HttpKernel-&gt; handle(Object,1,1)(行:57) Drupal \ Core \ StackMiddleware \ Session-&gt; handle(Object,1,1)(Line:47) Drupal \ Core \ StackMiddleware \ KernelPreHandle-&gt; handle(Object,1,1)(Line:99) Drupal \ page_cache \ StackMiddleware \ PageCache-&gt; pass(Object,1,1)(Line:78) Drupal \ page_cache \ StackMiddleware \ PageCache-&gt; handle(Object,1,1)(Line:47) Drupal \ Core \ StackMiddleware \ ReverseProxyMiddleware-&gt; handle(Object,1,1)(Line:50) Drupal \ Core \ StackMiddleware \ NegotiationMiddleware-&gt; handle(Object,1,1)(Line:23) Stack \ StackedHttpKernel-&gt; handle(Object,1,1)(行:664) Drupal \ Core \ DrupalKernel-&gt; handle(Object)(行:19)

请帮我解决这个问题。

1 个答案:

答案 0 :(得分:2)

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

感谢。