WAYF not triggered when using SAML federation plugin + one other provider
Affected version
Version: 2.16.2
Summary
- Set Auth=SAML
- Configure samlFederationFiles
- Configure samlDiscoveryProtocolURL/samlDiscoveryProtocolActivation
- Add one IDP (samltest.id)
- Browse to portal
- You get redirected to the non-federated IDP instead of the federation
Possible fixes
getIDP assumes that having one entityID in idpList means we need to use it. But WAYF may lazy load another IDP.
We should disable this heuristic when samlFederationFiles is set
Is there a better way?