Your IP : 216.73.216.79


Current Path : /var/www/html/mygovuc/backend/config/
Upload File :
Current File : /var/www/html/mygovuc/backend/config/params.php

<?php
return [
    'adminEmail' => 'your_emails',
    'templateSetting' => [
        'sideBgUpload' => 'images',
        'sideBgFileName' => 'sidebar-logo.jpg'
    ],
    'dashboardModule' => [
        'route' => 'customDashboard/data-dashboard/category',
        'param' => ['cat' => 'homepage']
    ],
    'avatarSetting' => [
        'avatarUploadPath' => 'images'
    ],
    'saml' => [
        // If 'strict' is True, then the PHP Toolkit will reject unsigned
        // or unencrypted messages if it expects them to be signed or encrypted.
        // Also it will reject the messages if the SAML standard is not strictly
        // followed: Destination, NameId, Conditions ... are validated too.
        'strict' => true,

        // Enable debug mode (to print errors].
        'debug' => false,

        // Set a BaseURL to be used instead of try to guess
        // the BaseURL of the view that process the SAML Message.
        // Ex http://sp.example.com/
        //    http://example.com/sp/
        'baseurl' => '',

        // Service Provider Data that we are deploying.
        'sp' => [
            // Identifier of the SP entity  (must be a URI]
            'entityId' => 'stagingportal',
            // Specifies info about where and how the <AuthnResponse> message MUST be
            // returned to the requester, in this case our SP.
            'assertionConsumerService' => [
                // URL Location where the <Response> from the IdP will be returned
                'url' => 'https://mygovuc.dynaweb4.work/admin/auth/google',
                // SAML protocol binding to be used when returning the <Response>
                // message. SAML Toolkit supports this endpoint for the
                // HTTP-POST binding only.
                'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
            ],
            // Specifies info about where and how the <Logout Response> message MUST be
            // returned to the requester, in this case our SP.
            'singleLogoutService' => [
                // URL Location where the <Response> from the IdP will be returned
                'url' => 'https://accounts.google.com/o/saml2/idp?idpid=C00zj051m',
                // SAML protocol binding to be used when returning the <Response>
                // message. SAML Toolkit supports the HTTP-Redirect binding
                // only for this endpoint.
                'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
            ],
            // Specifies the constraints on the name identifier to be used to
            // represent the requested subject.
            // Take a look on lib/Saml2/Constants.php to see the NameIdFormat supported.
            'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
            // Usually x509cert and privateKey of the SP are provided by files placed at
            // the certs folder. But we can also provide them with the following parameters
            'x509cert' => '',
            'privateKey' => file_get_contents('../../backend/config/saml.key'),

            /*
         * Key rollover
         * If you plan to update the SP x509cert and privateKey
         * you can define here the new x509cert and it will be
         * published on the SP metadata so Identity Providers can
         * read them and get ready for rollover.
         */
            // 'x509certNew' => '',
        ],

        // Identity Provider Data that we want connected with our SP.
        'idp' => [
            // Identifier of the IdP entity  (must be a URI]
            'entityId' => 'https://accounts.google.com/o/saml2?idpid=C00zj051m',
            // SSO endpoint info of the IdP. (Authentication Request protocol]
            'singleSignOnService' => [
                // URL Target of the IdP where the Authentication Request Message
                // will be sent.
                'url' => 'https://accounts.google.com/o/saml2/idp?idpid=C00zj051m',
                // SAML protocol binding to be used when returning the <Response>
                // message. SAML Toolkit supports the HTTP-Redirect binding
                // only for this endpoint.
                'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
            ],
            // SLO endpoint info of the IdP.
            'singleLogoutService' => [
                // URL Location of the IdP where SLO Request will be sent.
                'url' => '',
                // URL location of the IdP where the SP will send the SLO Response (ResponseLocation]
                // if not set, url for the SLO Request will be used
                'responseUrl' => '',
                // SAML protocol binding to be used when returning the <Response>
                // message. SAML Toolkit supports the HTTP-Redirect binding
                // only for this endpoint.
                'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
            ],
            // Public x509 certificate of the IdP
            'x509cert' => file_get_contents('../../backend/config/x509.cert'),
            /*
         *  Instead of use the whole x509cert you can use a fingerprint in order to
         *  validate a SAMLResponse, but we don't recommend to use that
         *  method on production since is exploitable by a collision attack.
         *  (openssl x509 -noout -fingerprint -in "idp.crt" to generate it,
         *   or add for example the -sha256 , -sha384 or -sha512 parameter]
         *
         *  If a fingerprint is provided, then the certFingerprintAlgorithm is required in order to
         *  let the toolkit know which algorithm was used. Possible values: sha1, sha256, sha384 or sha512
         *  'sha1' is the default value.
         *
         *  Notice that if you want to validate any SAML Message sent by the HTTP-Redirect binding, you
         *  will need to provide the whole x509cert.
         */
            // 'certFingerprint' => '',
            // 'certFingerprintAlgorithm' => 'sha1',

            /* In some scenarios the IdP uses different certificates for
         * signing/encryption, or is under key rollover phase and
         * more than one certificate is published on IdP metadata.
         * In order to handle that the toolkit offers that parameter.
         * (when used, 'x509cert' and 'certFingerprint' values are
         * ignored].
         */
            // 'x509certMulti' => [
            //      'signing' => [
            //          0 => '<cert1-string>',
            //      ],
            //      'encryption' => [
            //          0 => '<cert2-string>',
            //      ]
            // ],
        ],
    ]
];