Open MartinSandberg opened 6 years ago
Can you rework this into a pull request please?
This feels like a missing part of multi-idp support, if there are many then this should be reflected in:
loginpage_idp_list()
And these deep links should there too
Would it be possible for you to add a snippet of code to allow for deep links that.
I tried this out locally and it works, you might possibly want to rewrite the code.
So any deeplink into the site with saml=1&samlidp=NameOfOneOfMultipleIDPs added would take the user directly to the correct IDP.
in function saml_login() ....... // Set the default IdP to be the first in the list. Used when dual login is disabled. $arr = array_reverse($saml2auth->idpentityids); $idp = md5(array_pop($arr));
......