diff -r 000000000000 -r 1afc9d2ab94d authserver/testCAS/config/cas.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/authserver/testCAS/config/cas.php Wed Apr 01 15:31:12 2015 +0200 @@ -0,0 +1,129 @@ + env('CAS_DEBUG', false), + + + /* + |-------------------------------------------------------------------------- + | PHPCas Hostname + |-------------------------------------------------------------------------- + | + | Exemple: 'cas.myuniv.edu'. + | + */ + + 'cas_hostname' => env('CAS_HOSTNAME'), + + + /* + |-------------------------------------------------------------------------- + | Cas Port + |-------------------------------------------------------------------------- + | + | Usually 443 is default + | + */ + + 'cas_port' => intval(env('CAS_PORT', 443)), + + + /* + |-------------------------------------------------------------------------- + | CAS URI + |-------------------------------------------------------------------------- + | + | Sometimes is /cas + | + */ + + 'cas_uri' => env('CAS_URI', ''), + + + /* + |-------------------------------------------------------------------------- + | CAS Validation + |-------------------------------------------------------------------------- + | + | CAS server SSL validation: 'self' for self-signed certificate, 'ca' for + | certificate from a CA, empty for no SSL validation. + | + */ + + 'cas_validation' => env('CAS_VALIDATION', ''), + + + /* + |-------------------------------------------------------------------------- + | CAS Certificate + |-------------------------------------------------------------------------- + | + | Path to the CAS certificate file + | + */ + + 'cas_cert' => env('CAS_CERT', ''), + + + /* + |-------------------------------------------------------------------------- + | Pretend to be a CAS user + |-------------------------------------------------------------------------- + | + | This is useful in development mode. CAS is not called at all, only user + | is set. + | (NOT YET IMPLEMENTED !!) + | + */ + + 'cas_pretend_user' => env('CAS_PRETEND_USER', ''), + + /* + |-------------------------------------------------------------------------- + | Use as Cas proxy ? + |-------------------------------------------------------------------------- + */ + + 'cas_proxy' => env('CAS_PROXY', false), + + + /* + |-------------------------------------------------------------------------- + | Enable service to be proxied + |-------------------------------------------------------------------------- + | + | Example: + | phpCAS::allowProxyChain(new CAS_ProxyChain(array( + | '/^https:\/\/app[0-9]\.example\.com\/rest\//', + | 'http://client.example.com/' + | ))); + | For the exemple above: + | 'cas_proxied_services' => array('/^https:\/\/app[0-9]\.example\.com\/rest\//','http://client.example.com/'), + */ + + 'cas_proxied_services' => array(), + + /* + |-------------------------------------------------------------------------- + | Use SAML to retrieve user attributes + |-------------------------------------------------------------------------- + | + | Cas can be configured to return more than just the username to a given + | service. It could for example use an LDAP backend to return the first name, + | last name, and email of the user. This can be activated on the client side + | by setting 'cas_saml' to true. + | + */ + + 'cas_saml' => env('CAS_SAML', false) +];