Closed MasterPuffin closed 2 weeks ago
Your PHP version? Are you using any non-official modules or customizations?
On line 545 in /Modules/Saml/vendor/onelogin/php-saml/src/Saml2/Settings.php there is:
} else if (!filter_var($idp['singleSignOnService']['url'], FILTER_VALIDATE_URL)) {
$errors[] = 'idp_sso_url_invalid';
}
It means something happened to "Signin URL" under "Identity Provider (IdP)". Check if the Signin URL visible on "Settings >> SAML 2.0" page and present in the .env file.
I'm using PHP 8.2 with only the SSO module and nothing else.
Here is the SAML config from the env file:
SAML_ENABLED=on
SAML_IDP_ENTITY_ID="https://saml.example.org"
SAML_IDP_SIGNIN_URL="https://www.example.org/auth/saml/freescout/"
SAML_LOGOUT_URL=
SAML_IDP_CERT="<cert>"
SAML_MAPPING="<mapping>"
SAML_AUTH_CONTEXT=
SAML_AUTO_CREATE_USERS=1
SAML_FORCE_SAML_LOGIN=1
SAML_DEBUG=
SAML_STRICT=1
You may need to debug this line to find out what value is contained in $idp['singleSignOnService']['url']
:
https://github.com/freescout-helpdesk/freescout/issues/4078#issuecomment-2172402953
https://github.com/freescout-helpdesk/freescout/wiki/Debugging
The URL logged is https:///www.example.org/auth/saml/freescout/
whith three slashes instead of two, however the URL in the .env file is correct. Is the URL stored anywhere else?
It should be cached in /bootstrap/cache/config.php
- check what you have there.
Deleting the file you mentioned fixed the issue. Thanks š
Ok. Strange.
Since a few days I have the following issue with the SSO plugin. I haven't changed the config. Here are the logs