Hi all
I'm building SSO into a pre-existing application. One of the requirements is to allow the application admin to define the IdP via the admin UI. I'm 99% of the way there. The final thing I'm stuck on is the entityID, as specified in authsources.php.
Currently this is set to null, which has worked fine when I've been testing with an IdP who's entityID is the same as its metadata URL, since SimpleSAMLphp falls back to using the URL if no entityID is specified.
However, for cases where the URL and entityID are not the same, I need to be able to allow an admin to specify an entityID via my UI and then use that when authenticating. I've had a look through the relevant parts of SimpleSAMLphp and wasn't able to find anywhere where I could pass an entityID, I've been looking around lib/SimpleSAML/IdP.php, specifically 'authenticate' and on from there, but no luck.
Is there any provision for this? If not, does anyone have any suggestions for ways to achieve what I'm after? Currently all I'm coming up with is dynamically rebuilding authsources.php whenever the associated UI is updated, which feels nasty.
Any ideas at all would be gratefully received!
Cheers
Andrew