You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll be adding some extra checks on our end to better signal the error, but as a temporary solution you could manually edit the IDP metadata you downloaded.
I am trying the Docker-compose example from:
https://github.com/simevo/spid-wordpress/tree/master/docker
but I find an issue when clicking the 'Accedi con SPID usando testenv2 come IdP' button.
The issue is that the application is redirecting me to the wrong URL (http://localhost:8099/sso?SAMLRequest=xxx which is the Service Provider url) instead of http://localhost:8088/sso?SAMLRequest=xxx which is the Identity Provider url).
The result is a NOT FOUND error.
After a bit of investigation the problem seems to be in the method GetBindingLocation of Base class:
spid-php-lib/src/Spid/Saml/Out/Base.php
Line 67 in ac609f3
which seems to skip the Identity Provider url when building the redirect, infact if I change that line to:
if ($binding == $val['binding']) $location = $this->idp->metadata["idpEntityId"].$val['location'];
everything works.
BTW: I am not sure if that's the right place to compose the complete url (maybe it should be inside the IDP class itself).
The text was updated successfully, but these errors were encountered: