Reputation: 386
I have been given a task at work to implement SAML 2.0. I have successfully set it up based on the docs.
However, I need to know if SimpleSAMLPhp can be configured as multiple idps per instance of SimpleSAMLPhp as an Idp and Multiple Sp's per instance as an Sp.
Upvotes: 2
Views: 3566
Reputation: 3981
You can configure multiple SPs per installation in authsources.php
If you want mulitple Service Providers in the same site and installation, you can add more entries in the authsources.php configuration. If so remember to set the EntityID explicitly. Here is an example:
'sp1' => array(
'saml:SP',
'entityID' => 'https://sp1.example.org/',
),
'sp2' => array(
'saml:SP',
'entityID' => 'https://sp2.example.org/',
),
You can configure multiple IdPs per installation as well however they need to be on different hostnames.
<?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. */
);
Upvotes: 3