Skip to content
English
  • There are no suggestions because the search field is empty.

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

  1. Locate cloudconfig.php for 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).
  2. Open the file in a text editor with administrator or root privileges.
  3. Add the following line, substituting your actual server hostname and port:
    define("TONIDOCLOUD_SSO_FULLURL_OVERRIDE", "https://FILECLOUD.URL:PORT");
  4. Save the file.
  5. Restart the FileCloud service (or the Apache/web server service) so the change takes effect.
  6. 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: :\xampp\htdocs\config\cloudconfig.php