phpCAS version 1.3.6

Namespaces | Variables
config.example.php File Reference

Go to the source code of this file.

## Namespaces
| PhpCAS

## Variables
| $phpcas_path = '../../source/'
| $cas_host = 'cas.example.com'
| $cas_context = '/cas'
| $cas_port = 443
| $cas_server_ca_cert_path = '/path/to/cachain.pem'
| $cas_real_hosts = array('cas-real-1.example.com', 'cas-real-2.example.com')
| $client_domain = '127.0.0.1'
| $client_path = 'phpcas'
| $client_secure = true
| $client_httpOnly = true
| $client_lifetime = 0
| $db = 'pgsql:host=localhost;dbname=phpcas'
| $db_user = 'phpcasuser'
| $db_password = 'mysupersecretpass'
| $db_table = 'phpcastabel'
| $driver_options = ''
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') | else
if($_SERVER['SERVER_PORT'] !=80 && $_SERVER['SERVER_PORT'] !=443) | $curdir = dirname($_SERVER['REQUEST_URI']) . "/"
| $rebroadcast_node_1 = 'http://cas-client-1.example.com'
| $rebroadcast_node_2 = 'http://cas-client-2.example.com'
| $serviceUrl = $curbase . $curdir . 'example_service.php'
| $serviceUrl2 = $curbase . $curdir . 'example_service_that_proxies.php'
| $pgtBase = preg_quote(preg_replace('/^http:/', 'https:', $curbase . $curdir), '/')
| $pgtUrlRegexp = '/^' . $pgtBase . '.*$/'
| $cas_url = 'https://' . $cas_host

## Variable Documentation

## ◆ $cas_context

$cas_context = '/cas'

Examples:
  example_advanced_saml11.php, example_custom_urls.php, example_gateway.php, example_html.php, example_lang.php, example_logout.php, example_pgt_storage_db.php, example_pgt_storage_file.php, example_proxy_GET.php, example_proxy_POST.php, example_proxy_serviceWeb.php, example_proxy_serviceWeb_chaining.php, example_service.php, example_service_POST.php, example_service_that_proxies.php, and example_simple.php.

Definition at line 30 of file config.example.php.

## ◆ $cas_host

$cas_host = 'cas.example.com'

Examples:
  example_advanced_saml11.php, example_custom_urls.php, example_gateway.php, example_html.php, example_lang.php, example_logout.php, example_pgt_storage_db.php, example_pgt_storage_file.php, example_proxy_GET.php, example_proxy_POST.php, example_proxy_serviceWeb.php, example_proxy_serviceWeb_chaining.php, example_service.php, example_service_POST.php, example_service_that_proxies.php, and example_simple.php.

Definition at line 27 of file config.example.php.

## ◆ $cas_port

$cas_port = 443

Examples:
  example_advanced_saml11.php, example_custom_urls.php, example_gateway.php, example_html.php, example_lang.php, example_logout.php, example_pgt_storage_db.php, example_pgt_storage_file.php, example_proxy_GET.php, example_proxy_POST.php, example_proxy_serviceWeb.php, example_proxy_serviceWeb_chaining.php, example_service.php, example_service_POST.php, example_service_that_proxies.php, and example_simple.php.

Definition at line 33 of file config.example.php.

## ◆ $cas_real_hosts

$cas_real_hosts = array('cas-real-1.example.com', 'cas-real-2.example.com')

Examples:
  example_advanced_saml11.php.

Definition at line 44 of file config.example.php.

## ◆ $cas_server_ca_cert_path

$cas_server_ca_cert_path = '/path/to/cachain.pem'

Examples:
  example_advanced_saml11.php.

Definition at line 36 of file config.example.php.

## ◆ $cas_url

if ( $cas_port !='443') $cas_url = 'https://' . $cas_host

Definition at line 89 of file config.example.php.

Referenced by CAS_AuthenticationException\__construct(), CAS_Client\_authError(), CAS_Client\logout(), CAS_Client\redirectToCas(), and CAS_Client\retrievePT().

## ◆ $client_domain

$client_domain = '127.0.0.1'

Definition at line 47 of file config.example.php.

## ◆ $client_httpOnly

$client_httpOnly = true

Definition at line 50 of file config.example.php.

## ◆ $client_lifetime

$client_lifetime = 0

Definition at line 51 of file config.example.php.

## ◆ $client_path

$client_path = 'phpcas'

Definition at line 48 of file config.example.php.

## ◆ $client_secure

$client_secure = true

Definition at line 49 of file config.example.php.

## ◆ $curdir

if ( $_SERVER[ 'SERVER_PORT'] !=80 &&$_SERVER[ 'SERVER_PORT'] !=443) $curdir = dirname($_SERVER['REQUEST_URI']) . "/"

Examples:
  example_proxy_POST.php.

Definition at line 75 of file config.example.php.

## ◆ $db

$db = 'pgsql:host=localhost;dbname=phpcas'

Examples:
  example_pgt_storage_db.php.

Definition at line 54 of file config.example.php.

## ◆ $db_password

$db_password = 'mysupersecretpass'

Examples:
  example_pgt_storage_db.php.

Definition at line 57 of file config.example.php.

## ◆ $db_table

$db_table = 'phpcastabel'

Examples:
  example_pgt_storage_db.php.

Definition at line 58 of file config.example.php.

## ◆ $db_user

$db_user = 'phpcasuser'

Examples:
  example_pgt_storage_db.php.

Definition at line 56 of file config.example.php.

## ◆ $driver_options

$driver_options = ''

Definition at line 59 of file config.example.php.

Referenced by CAS_PGTStorage_Db\__construct(), phpCAS\setPGTStorageDb(), and CAS_Client\setPGTStorageDb().

## ◆ $pgtBase

$pgtBase = preg_quote(preg_replace('/^http:/', 'https:', $curbase . $curdir), '/')

Examples:
  example_service.php.

Definition at line 86 of file config.example.php.

## ◆ $pgtUrlRegexp

$pgtUrlRegexp = '/^' . $pgtBase . '.*$/'

Examples:
  example_service.php, example_service_POST.php, and example_service_that_proxies.php.

Definition at line 87 of file config.example.php.

## ◆ $phpcas_path

$phpcas_path = '../../source/'

Examples:
  example_advanced_saml11.php, example_custom_urls.php, example_gateway.php, example_html.php, example_lang.php, example_logout.php, example_pgt_storage_db.php, example_pgt_storage_file.php, example_proxy_GET.php, example_proxy_POST.php, example_proxy_serviceWeb.php, example_proxy_serviceWeb_chaining.php, example_service.php, example_service_POST.php, example_service_that_proxies.php, and example_simple.php.

Definition at line 20 of file config.example.php.

## ◆ $rebroadcast_node_1

$rebroadcast_node_1 = 'http://cas-client-1.example.com'

Definition at line 78 of file config.example.php.

## ◆ $rebroadcast_node_2

$rebroadcast_node_2 = 'http://cas-client-2.example.com'

Definition at line 79 of file config.example.php.

## ◆ $serviceUrl

$serviceUrl = $curbase . $curdir . 'example_service.php'

Definition at line 82 of file config.example.php.

Referenced by CAS_Client\serviceMail().

## ◆ $serviceUrl2

$serviceUrl2 = $curbase . $curdir . 'example_service_that_proxies.php'

Definition at line 84 of file config.example.php.

## ◆ else

if (isset( $_SERVER[ 'HTTPS']) &&$_SERVER[ 'HTTPS']=='on') else

Initial value:
{
$curbase = 'http://' . $_SERVER['SERVER_NAME']

Definition at line 68 of file config.example.php.