Peter Schober <
peter....@univie.ac.at> [2024-06-11 12:03 CEST]:
> I understood the question to be: How does the URL for SimpleSAMLphp
> look like where I can pass in an IDP's entityID to initiate SSO with?
> One literal answer would be to use the newly added (but not included
> in a released version, AFAICT) support for the SPRIP protocol.
>
> I guess the original problem statement could be generalised to read:
> How to I use SSP to create custom login links for a bunch of IDPs?
> I would have expected the SSP PHP API to provide this
Another way to frame that problem is to just look at it as a different
"theme" for a SAML IDP Discovery Service -- because that's effectively
what you're building: creating a "mapping" from human-understandable
IDP display name (for users to select an IDP to log in with) to a
machine-understandable IDP entityID (the globally unique identifier
SSP needs in order to initate SSO with the chosen IDP).
Did you look at styling any of the existing SAMLDS variants
differently so that they better suits your purpose?
The SAMLDS protocol[1] is also rather simple, so building an external
(to the SimpleSAMLphp software) SAMLDS that works/looks just the way
you want should also be easily possible. Co-locating that on the same
web server your protected resource (and SSP instance) runs on may be
good enough without having to implement this within SimpleSAMLphp
itself.
The upside of approaching this as a SAMLDS issue is that it would
automatically work for any IDP your SSP instance has metadata
available, i.e., you wouldn't have to create those links to IDPs
yourself/manually!
HTH,
-peter
[1]
https://wiki.oasis-open.org/security/IdpDiscoSvcProtonProfile