Модуль Simplesamlphp_auth в Drupal 8 + библиотека Simplesaml

Я успешно установил simplesamlphp и настроил свою систему как SP. А также может войти в IDP. Теперь я хочу интегрировать его в свой проект drupal8. Итак, согласно инструкциям по установке, я загрузил модуль simplesamlphp_auth в папку с моими модулями проекта drupal и обновил панель администратора для его установки, выдает такую ​​ошибку:

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 (Массив) ( Строка: 230) Drupal \ Component \ DependencyInjection \ Container- ›createService (Array, 'simplesamlphp_auth_event_subscriber') (строка: 171) Drupal \ Component \ DependencyInjection \ Container-› get ('simplesamlphp_auth_event_subscriber') (Строка Drupal: EventDispatcher \ ContainerAwareEventDispatcher- ›dispatch ('kernel.request', Object) (Строка: 127) Symfony \ Component \ HttpKernel \ HttpKernel-› handleRaw (Object, 1) (Строка: 68) Symfony \ Component \ HttpKernel \ HttpKernel- ›дескриптор (Object, 1, 1) (Line: 57) Drupal \ Core \ StackMiddleware \ Session- ›handle (Object, 1, 1) (Line : 47) Drupal \ Core \ StackMiddleware \ KernelPreHandle- ›дескриптор (Object, 1, 1) (строка: 99) Drupal \ page_cache \ StackMiddleware \ PageCache-› проход (Object, 1, 1) (строка: 78) Drupal \ page_cache \ StackMiddleware \ PageCache- ›дескриптор (Object, 1, 1) (Строка: 47) Drupal \ Core \ StackMiddleware \ ReverseProxyMiddleware-› дескриптор (Object, 1, 1) (Строка: 50) Drupal \ Core \ StackMiddleware \ NegotiationMiddleware- › handle (Объект, 1, 1) (Строка: 23) Stack \ StackedHttpKernel- ›ручка (Объект, 1, 1) (Строка: 664) Drupal \ Core \ DrupalKernel-› ручка (Объект) (Строка: 19)

Пожалуйста, помогите мне с этим вопросом.


person Priya Agrawal    schedule 03.05.2018    source источник
comment
в каталоге vendor / simplesaml / simplesaml / будет каталог с именем config, убедитесь, присутствует ли там файл config.php или нет!   -  person vishwa    schedule 04.05.2018
comment
Спасибо @vishwa. Да, эта ошибка возникла из-за того, что папки с конфигурацией и метаданными были пустыми. Решено.   -  person Priya Agrawal    schedule 08.05.2018


Ответы (1)


Потратив целый день на эту проблему, я наконец решил эту ошибку, скопировав папку docroot / simplesamlphp / config и метаданных в vendor / simplesamlphp / config и metadata.

Спасибо.

person Priya Agrawal    schedule 08.05.2018