2017-04-11 9 views
0

나는 How to Configure SimpleSAMLphp for Drupal 8 on Acquia 지시를 따르고 있습니다. 나는 아래쪽에 "SimpleSAMLphp_auth 모듈 설정. 개인적으로 settings.php에 SimpleSAMLphp_auth 모듈 설정을 저장하는 것을 권합니다."라고 말합니다. 일단 코드 스 니펫에있는 코드를 내 settings.php 파일 (하단에 붙여 넣기)에 복사 한 다음 Acquia로 가져 가면 dev.mysite.com/user URL을 통해 로그인을 시도 할 때이 오류가 발생합니다.복구 방법 치명적인 오류 : Drupal Core Link 클래스의 개체를 Drupal Component Utility Xss :: filter의 문자열로 변환 할 수 없습니다?

웹 사이트에서 예기치 않은 오류가 발생했습니다. 나중에 다시 시도 해주십시오. 복구 할 수있는 치명적인 오류 : Drupal \ Core \ Link 클래스의 객체를 Drupal \ Component \ Utility \ Xss :: filter() (core/lib/Drupal/Component/Utility/Xss.php의 67 행) 문자열로 변환 할 수 없습니다.

아래 코드는 내 settings.php 파일에있는 코드입니다.

$config['simplesamlphp_auth.settings'] = [ 
    // Basic settings. 
    'activate'    => TRUE, // Enable or Disable SAML login. 
    'auth_source'    => 'default-sp', 
    'login_link_display_name' => 'Login with your SSO account', 
    'register_users'   => TRUE, 
    'debug'     => FALSE, 
    // Local authentication. 
    'allow' => [ 
    'default_login'   => TRUE, 
    'set_drupal_pwd'  => TRUE, 
    'default_login_users' => '', 
    'default_login_roles' => [ 
     'authenticated' => FALSE, 
     'administrator' => 'administrator', 
    ], 
    ], 
    'logout_goto_url'   => '', 
    // User info and syncing. 
    // `unique_id` is specified in Transient format, otherwise this should be `UPN` 
    // Please talk to your SSO adminsitrators about which format you should be using. 
    'unique_id'    => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn', 
    'user_name'    => 'uid', 
    'mail_attr'    => 'mail', 
    'sync' => [ 
    'mail'  => FALSE, 
    'user_name' => FALSE, 
    ], 
]; 

내 setings.php 파일에 코드의 전체 블록에서 주석 경우

는 내 dev.mysite.com/user의 드루팔 사이트에 로그인 할 수 있습니다. 내가 분명하지 않은 또 하나의 점은, 먼저 "SimpleSAMLphp 옵션을 통한 인증 활성화 확인"을 수행 한 다음 코드 조각을 내 settings.php 파일에 복사하고 Acquia 또는 다른 방법으로 푸시합니까?

도움을 주시면 감사하겠습니다.

답변

0

버전 8.x-3.0-rc2으로 업데이트하면 위의 오류가 해결 된 것 같습니다. 그러나 "이 사이트에 연결할 수 없습니다."라는 다른 문제가 추가되어 사이트가 포트 80으로 리디렉션되는 것처럼 보입니다.