Hello everyone!
What I am trying to do?I already
have a corporate SAML proxy configured and running with a lot of IDPs and SPs
in place. Now I want to join a federation as IDP which restricts the accounts
we are allowed to release to the AAI. So some Users should be able to access
corporate services while not having access to the federations services at all.
As far as I know there are not any modules able to handle these kinds of
restrictions.
I came up with the idea to setup a dedicated federation IDP which uses the same
authsource (SAML 2.0 SP) as my first proxy IDP.
Since SimpleSAMLphp
does not seem to provide the capability to configure multiple IdPs on the same
host name my first attempt was to setup another IDP on a subdomain (aai.login.local.dev
instead of login.local.dev).
This attempt failed because I was not able to pin the host name of the proxy SP
which adapted to the new subdomain and I effectively had 2 separate SPs.
After reading https://groups.google.com/g/simplesamlphp/c/-6PrbWEBAWc/m/2dtJnw7-W2AJ I tried to implement a very similar approach to be able to configure multiple IDPs on the same domain. After a few smaller changes in a PoC environment this already works like a charm.
I am aware that this change is just a PoC and currently breaks compatibility with some functionalities.
Before investing additional time I would like to discuss this approach and determine whether this has a chance to be merged to the upstream repository.
Do you have any objections or ideas on this approach or my problem?
Best regards
Mark