對於我來說SAML對我來說是非常新的,我對此不甚瞭解。我試圖在本地機器上執行SAML演示。但它通過錯誤:在ZEND項目中與SAML集成在onelogin中
Fatal error: Uncaught exception 'OneLogin_Saml2_Error' with message 'Invalid array settings: idp_entityId_not_found, idp_sso_not_found' in C:\xampp\htdocs\saml\lib\Saml2\Settings.php:121 Stack trace: #0 C:\xampp\htdocs\saml\lib\Saml2\Auth.php(107): OneLogin_Saml2_Settings->__construct(Array) #1 C:\xampp\htdocs\saml\demo1\index.php(13): OneLogin_Saml2_Auth->__construct(Array) #2 {main} thrown in C:\xampp\htdocs\saml\lib\Saml2\Settings.php on line 121
設置文件是這樣的:
$spBaseUrl = 'http://localhost/saml'; //or http://<your_domain>
$settingsInfo = array (
'sp' => array (
'entityId' => $spBaseUrl.'/demo1/metadata.php',
'assertionConsumerService' => array (
'url' => $spBaseUrl.'/demo1/index.php?acs',
),
'singleLogoutService' => array (
'url' => $spBaseUrl.'/demo1/index.php?sls',
),
'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified',
),
'idp' => array (
'entityId' => '',
'singleSignOnService' => array (
'url' => '',
),
'singleLogoutService' => array (
'url' => '',
),
'x509cert' => '',
),
);
我不知道要放什麼東西在SP和IDP配置文件。 請建議在我的本地機器上執行它。