authserver/testCAS/config/cas.php
changeset 0 1afc9d2ab94d
child 8 5a0cbbe0922a
equal deleted inserted replaced
-1:000000000000 0:1afc9d2ab94d
       
     1 <?php
       
     2 
       
     3 return [
       
     4         /*
       
     5         |--------------------------------------------------------------------------
       
     6         | PHPCas Debug
       
     7         |--------------------------------------------------------------------------
       
     8         |
       
     9         | Example : '/var/log/phpCas.log'
       
    10         | or true for default location (/tmp/phpCAS.log)
       
    11         |
       
    12         */
       
    13 
       
    14         'cas_debug' => env('CAS_DEBUG', false),
       
    15 
       
    16 
       
    17         /*
       
    18         |--------------------------------------------------------------------------
       
    19         | PHPCas Hostname
       
    20         |--------------------------------------------------------------------------
       
    21         |
       
    22         | Exemple: 'cas.myuniv.edu'.
       
    23         |
       
    24         */
       
    25 
       
    26         'cas_hostname' => env('CAS_HOSTNAME'),
       
    27 
       
    28 
       
    29         /*
       
    30         |--------------------------------------------------------------------------
       
    31         | Cas Port
       
    32         |--------------------------------------------------------------------------
       
    33         |
       
    34         | Usually 443 is default
       
    35         |
       
    36         */
       
    37 
       
    38         'cas_port' => intval(env('CAS_PORT', 443)),
       
    39 
       
    40 
       
    41         /*
       
    42         |--------------------------------------------------------------------------
       
    43         | CAS URI
       
    44         |--------------------------------------------------------------------------
       
    45         |
       
    46         | Sometimes is /cas
       
    47         |
       
    48         */
       
    49 
       
    50         'cas_uri' => env('CAS_URI', ''),
       
    51 
       
    52 
       
    53         /*
       
    54         |--------------------------------------------------------------------------
       
    55         | CAS Validation
       
    56         |--------------------------------------------------------------------------
       
    57         |
       
    58         | CAS server SSL validation: 'self' for self-signed certificate, 'ca' for
       
    59         | certificate from a CA, empty for no SSL validation.
       
    60         |
       
    61         */
       
    62 
       
    63         'cas_validation' => env('CAS_VALIDATION', ''),
       
    64 
       
    65 
       
    66         /*
       
    67         |--------------------------------------------------------------------------
       
    68         | CAS Certificate
       
    69         |--------------------------------------------------------------------------
       
    70         |
       
    71         | Path to the CAS certificate file
       
    72         |
       
    73         */
       
    74 
       
    75         'cas_cert' => env('CAS_CERT', ''),
       
    76 
       
    77 
       
    78         /*
       
    79         |--------------------------------------------------------------------------
       
    80         | Pretend to be a CAS user
       
    81         |--------------------------------------------------------------------------
       
    82         |
       
    83         | This is useful in development mode. CAS is not called at all, only user
       
    84         | is set.
       
    85         | (NOT YET IMPLEMENTED !!)
       
    86         |
       
    87         */
       
    88 
       
    89         'cas_pretend_user' => env('CAS_PRETEND_USER', ''),
       
    90 
       
    91         /*
       
    92         |--------------------------------------------------------------------------
       
    93         | Use as Cas proxy ?
       
    94         |--------------------------------------------------------------------------
       
    95         */
       
    96 
       
    97          'cas_proxy' => env('CAS_PROXY', false),
       
    98 
       
    99 
       
   100         /*
       
   101         |--------------------------------------------------------------------------
       
   102         | Enable service to be proxied
       
   103         |--------------------------------------------------------------------------
       
   104         |
       
   105         | Example:
       
   106         | phpCAS::allowProxyChain(new CAS_ProxyChain(array(
       
   107         |                                 '/^https:\/\/app[0-9]\.example\.com\/rest\//',
       
   108         |                                 'http://client.example.com/'
       
   109         |                         )));
       
   110         | For the exemple above:
       
   111         |   'cas_proxied_services' => array('/^https:\/\/app[0-9]\.example\.com\/rest\//','http://client.example.com/'),
       
   112         */
       
   113 
       
   114          'cas_proxied_services' => array(),
       
   115 
       
   116         /*
       
   117         |--------------------------------------------------------------------------
       
   118         | Use SAML to retrieve user attributes
       
   119         |--------------------------------------------------------------------------
       
   120         |
       
   121         | Cas can be configured to return more than just the username to a given
       
   122         | service. It could for example use an LDAP backend to return the first name,
       
   123         | last name, and email of the user. This can be activated on the client side
       
   124         | by setting 'cas_saml' to true.
       
   125         |
       
   126         */
       
   127 
       
   128         'cas_saml' => env('CAS_SAML', false)
       
   129 ];