SSO redirection not occurring with custom port
Original Question or Issue:
SAML SSO sign-in fails on FileCloud Server when the server URL includes a custom port. After upgrading to FileCloud 23.251 or later, SSO redirection stops working and no redirection activity appears in the FileCloud Server logs. The fix is to add a TONIDOCLOUD_SSO_FULLURL_OVERRIDE constant to cloudconfig.php that specifies the full server URL including the custom port.
Environment:
- Product - FileCloud Server
- Version - 23.251 (or later)
- Platform - Any
Steps to Reproduce:
Upgrade FileCloud to release 23.251 or later (refer to the FileCloud release notes to confirm the affected version range for your deployment).
Error or Log Message:
SSO shows no redirection activity in the FileCloud Server logs.
Defect or Enhancement Number:
Cause:
What causes SAML SSO redirection to fail?
SAML SSO redirection fails when the FileCloud Server URL includes a custom port. In this case, the FileCloud Server logs show no redirection activity for SSO requests.
Resolution or Workaround:
How do you fix SAML SSO redirection when using a custom port?
To restore SAML SSO redirection, add the following flag to cloudconfig.php, replacing FILECLOUD.URL and PORT with your actual FileCloud Server hostname and custom port number:
define("TONIDOCLOUD_SSO_FULLURL_OVERRIDE", "https://FILECLOUD.URL:PORT");Steps
- Locate
cloudconfig.phpfor your operating system:- Linux:
/var/www/html/config/cloudconfig.php - Windows:
<drive_letter>:\xampp\htdocs\config\cloudconfig.php, where<drive_letter>is the drive on which FileCloud is installed (for example,C).
- Linux:
- Open the file in a text editor with administrator or root privileges.
- Add the following line, substituting your actual server hostname and port:
define("TONIDOCLOUD_SSO_FULLURL_OVERRIDE", "https://FILECLOUD.URL:PORT"); - Save the file.
- Restart the FileCloud service (or the Apache/web server service) so the change takes effect.
- Attempt to sign in with SAML again and confirm that SSO redirection now appears in the FileCloud Server logs.
define("TONIDOCLOUD_SSO_FULLURL_OVERRIDE", "https://FILECLOUD.URL:PORT");
Notes:
Linux: /var/www/html/config/cloudconfig.php
Windows: