SAML-Toolkits / php-saml

Simple SAML toolkit for PHP
MIT License
1.21k stars 462 forks source link

buildWithBaseURLPath return only last part of url #579

Open agrisvv opened 3 months ago

agrisvv commented 3 months ago

Example of url basepath: https://example.com/custom assertion url: https://example.com/custom/login/idpname

Then function buildWithBaseURLPath returns: https://example.com/custom/idpname

In result thow exception: The response was received at https://example.com/custom/idpname instead of https://example.com/custom/login/idpname

Resolutions: need to use all parts of url not only the last.

joelpittet commented 3 months ago

@agrisvv I am running into this exact issue too, thanks for posting it.

I'll post a PR for a potential fix.