【发布时间】:2018-04-05 21:43:54
【问题描述】:
我的工作任务是实施 SAML 2.0。我已经根据文档成功设置了。
但是,我需要知道是否可以将 SimpleSAMLPhp 配置为每个 SimpleSAMLPhp 实例的多个 idp 作为 Idp,并将每个实例的多个 Sp 配置为 Sp。
【问题讨论】:
我的工作任务是实施 SAML 2.0。我已经根据文档成功设置了。
但是,我需要知道是否可以将 SimpleSAMLPhp 配置为每个 SimpleSAMLPhp 实例的多个 idp 作为 Idp,并将每个实例的多个 Sp 配置为 Sp。
【问题讨论】:
您可以在authsources.phpconfigure multiple SPs 的每个安装中使用configure multiple SPs
如果您希望在同一个站点和安装中拥有多个服务提供者,您可以在 authsources.php 配置中添加更多条目。如果是这样,请记住明确设置 EntityID。这是一个例子:
'sp1' => array(
'saml:SP',
'entityID' => 'https://sp1.example.org/',
),
'sp2' => array(
'saml:SP',
'entityID' => 'https://sp2.example.org/',
),
您可以configure multiple IdPs per installation as well 但它们需要位于不同的主机名上。
<?php
/* The index of the array is the entity ID of this IdP. */
$metadata['entity-id-1'] = array(
'host' => 'idp.example.org',
/* Configuration options for the first IdP. */
);
$metadata['entity-id-2'] = array(
'host' => '__DEFAULT__',
/* Configuration options for the default IdP. */
);
【讨论】: