CAS Authentification CMS

Hi,
I have an error to param CAS auth in xibo docker CMS :

I use this documentation : [CAS as an Authentication Provider | Xibo Digital Signage]

The server is in test mode with the custom-settings :

$authentication = new \Xibo\Middleware\CASAuthentication();
$casSettings = array(
    'config' => array (
        'server' => 'xxx.xxxxx.xx',
        'port' => '443',
        'uri' => '/cas'
    )
);

Can you help to resolve it ?
Best regards

Since PHP8 we have upgraded the CAS client to 1.6.0 and a new setting is needed called service_base_url.

This is the documentation for that:

     *   - A base URL string. The service URL discovery will always use this (protocol,
     *     hostname and optional port number) without using any external host names.
     *   - An array of base URL strings. The service URL discovery will check against
     *     this list before using the auto discovered base URL. If there is no match,
     *     the first base URL in the array will be used as the default. This option is
     *     helpful if your PHP website is accessible through multiple domains without a
     *     canonical name, or through both HTTP and HTTPS.

I presume this needs to be set to either an empty array, or the URL of your service discovery.

@natasha can we add this to the docs once we know what it should be?

1 Like

The solution is :

$authentication = new \Xibo\Middleware\CASAuthentication();
$casSettings = array(
    'config' => array (
       'service_base_url' => 'https://*url of xibo server*'
        'server' => 'xxx.xxxxx.xx',
        'port' => '443',
        'uri' => '/cas'
    )
);
2 Likes

Thank you @mattvar I will get that updated :+1:

Hello,

:thinking: can you upgrade the example settings in this page : CAS as an Authentication Provider | Xibo Digital Signage ( or add an example settings for xibo v4 ) ?