Php 如何为单个IdP配置多个SP
我一直遵循本教程: 。。。。它确实有助于在SP和IdP之间设置身份验证。但是,在配置metadata/saml20-remote-sp.php文件时,它会告诉我将一个框sp:Federation>Show metadata>simpleSAMLphp平面文件格式框的内容复制并粘贴到该文件中。我已经这样做了,它对单个SP非常有效-我真的不知道如何添加另一个SP。我查看了文档,但它只显示了所需的最小设置,没有提及/示例多个SP 下面是我的IdP元数据/saml20-remote-sp.php,其中包含一个sp:Php 如何为单个IdP配置多个SP,php,simplesamlphp,Php,Simplesamlphp,我一直遵循本教程: 。。。。它确实有助于在SP和IdP之间设置身份验证。但是,在配置metadata/saml20-remote-sp.php文件时,它会告诉我将一个框sp:Federation>Show metadata>simpleSAMLphp平面文件格式框的内容复制并粘贴到该文件中。我已经这样做了,它对单个SP非常有效-我真的不知道如何添加另一个SP。我查看了文档,但它只显示了所需的最小设置,没有提及/示例多个SP 下面是我的IdP元数据/saml20-remote-sp.php,其中包
$metadata['http://local-ssoidp'] = array (
'SingleLogoutService' =>
array (
0 =>
array (
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => 'http://local-mwqasys/simplesaml/module.php/saml/sp/saml2-logout.php/default-sp',
),
),
'AssertionConsumerService' =>
array (
0 =>
array (
'index' => 0,
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'Location' => 'http://local-mwqasys/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp',
),
1 =>
array (
'index' => 1,
'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post',
'Location' => 'http://local-mwqasys/simplesaml/module.php/saml/sp/saml1-acs.php/default-sp',
),
2 =>
array (
'index' => 2,
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact',
'Location' => 'http://local-mwqasys/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp',
),
3 =>
array (
'index' => 3,
'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01',
'Location' => 'http://local-mwqasys/simplesaml/module.php/saml/sp/saml1-acs.php/default-sp/artifact',
),
),
);
如何向此添加其他SP?我曾考虑将这些数组合并到每个SP的show元数据页面中给出的数组中,但除了猜测之外,我还想获得更好的理解。请任何人就如何做到这一点提出建议。谢谢。您只需在第一个SP下添加第二个SP即可 因此,复制您当前拥有的内容并将其粘贴到文件底部。然后使用第二个SP的详细信息编辑第二个副本 干杯