Error method GET

CMS Version

Versão 3.3.0

Issue

We did all the auth0 configuration as per doc → SAML as an Authentication Provider | Xibo Digital Signage

When trying to access the page, the error occurs Erro
Method not allowed. Must be one of: GET

File settings.php:

<?php

/*
 * Xibo - Digital Signage - http://www.xibo.org.uk
 *
 * This file is part of Xibo - and is automatically generated by the installer
 *
 * You should not need to edit this file, unless your SQL connection details have changed.
 */

defined('XIBO') or die(__("Sorry, you are not allowed to directly access this page.") . "<br />" . __("Please press the back button in your browser."));

global $dbhost;
global $dbuser;
global $dbpass;
global $dbname;
global $dbssl;
global $dbsslverify;

$dbhost = $_SERVER['MYSQL_HOST'] . ':' . $_SERVER['MYSQL_PORT'];
$dbuser = $_SERVER['MYSQL_USER'];
$dbpass = $_SERVER['MYSQL_PASSWORD'];
$dbname = $_SERVER['MYSQL_DATABASE'];
$dbssl = $_SERVER['MYSQL_ATTR_SSL_CA'];
$dbsslverify = $_SERVER['MYSQL_ATTR_SSL_VERIFY_SERVER_CERT'];

if (!defined('SECRET_KEY')) {
    define('SECRET_KEY','QV7QfPGJ');
}

if (array_key_exists('CMS_USE_MEMCACHED', $_SERVER)
    && ($_SERVER['CMS_USE_MEMCACHED'] === true || $_SERVER['CMS_USE_MEMCACHED'] === 'true')
) {
    global $cacheDrivers;
    $cacheDrivers = [
        new Stash\Driver\Memcache([
            'servers' => [$_SERVER['MEMCACHED_HOST'], $_SERVER['MEMCACHED_PORT']],
            'CONNECT_TIMEOUT' => 10,
        ])
    ];
}

#if (file_exists('/opt/xibo-v2/custom/settings-custom.php')) {
#    include('/opt/xibo-v2/custom/settings-custom.php');
#}
#
$authentication = new \Xibo\Middleware\SAMLAuthentication();
$samlSettings = array (
   'workflow' => array(
#        // Enable/Disable Just-In-Time provisioning
        'jit' => true,
#        // Attribute to identify the user 
        'field_to_identify' => 'email',   // Alternatives: UserID, UserName or email
#        // Default libraryQuota assigned to the created user by JIT
        'libraryQuota' => 1000,
#        // Initial User Group
        'group' => 'Users',
#        // Home Page
        'homePage' => 'icondashboard.view',
#        // Enable/Disable Single Logout
        'slo' => true,
#        // Attribute mapping between XIBO-CMS and the IdP
        'mapping' => array (
            'email' => 'url schemas',
        )
    ),
#   // Settings for the PHP-SAML toolkit. 
#   // See documentation: https://github.com/onelogin/php-saml#settings 
   'strict' => false,
   'debug' => true,
   'idp' => array (
	   'entityId' => 'url entity',
            'singleSignOnService' => array (
		    'url' => 'url-signon',
		    'binding' => 'urn:oasis.....,
            ),
            'singleLogoutService' => array (
		    'url' => 'url/logout',
		    'binding' => 'urn:oasis....',
            ),
            'x509cert' => 'certificated', 
    ),
   'sp' => array (
        'entityId' => 'https://url/metadata.xml',
        'assertionConsumerService' => array (
            'url' => 'https://url/statusdashboard',
        ),
        'singleLogoutService' => array (
            'url' => 'https://url/logout',
        ),
        'NameIDFormat' => 'urn:oasis.....',
        'x509cert' => 'certificado',
#        'privateKey' > '',
    ),
    'security' => array (
        'nameIdEncrypted' => false,
        'authnRequestsSigned' => false,
        'logoutRequestSigned' => false,
        'logoutResponseSigned' => false,
        'signMetadata' => false,
        'wantMessagesSigned' => false,
        'wantAssertionsSigned' => false,
        'wantAssertionsEncrypted' => false,
        'wantNameIdEncrypted' => false,
    )
);

?>

Is there any configuration or extension missing?

Best regards

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.