Hi Martyn,
Take a look at the official documentation:
https://simplesamlphp.org/docs/stable/simplesamlphp-idp
> .... it has really helped to setup authentication between SP and IdP. However, when configuring the metadata/saml20-remote-sp.php file it tells me to copy and paste the contents of a box (SP: Federation > Show metadata > simpleSAMLphp flat file format box) to that file. I've done this, and it works great for a single SP - I just don't really know how to add another SP. I checked the documentation but it only shows minimum set required, and no mention/example of multiple SPs.
If you follow the documentation, you will reach this:
https://simplesamlphp.org/docs/stable/simplesamlphp-reference-sp-remote
I’ll quote here for your convenience the very first paragraph of that page, which contains an example for what you are asking:
—8<—
This is a reference for metadata options available for metadata/saml20-sp-remote.php and metadata/shib13-sp-remote.php. Both files have the following format:
<?php
/* The index of the array is the entity ID of this SP. */
$metadata['entity-id-1'] = array(
/* Configuration options for the first SP. */
);
$metadata['entity-id-2'] = array(
/* Configuration options for the second SP. */
);
/* ... */
—>8—
Also consider that all configurations are PHP files. Therefore, you can do whatever you want with the configuration if you write your own code in there.
--
Jaime Pérez
UNINETT / Feide
mail:
jaime...@uninett.no
xmpp:
ja...@jabber.uninett.no
"Two roads diverged in a wood, and I, I took the one less traveled by, and that has made all the difference."
- Robert Frost