phpCAS  version 1.4.0
Namespaces | Variables
config.php File Reference

Go to the source code of this file.

Namespaces

 PhpCAS
 

Variables

 $phpcas_path = '../../source/'
 
 $cas_host = 'cas.fritschi.me'
 
 $cas_context = '/cas'
 
 $cas_port = 8443
 
 $cas_server_ca_cert_path = '/etc/tomcat8/conf/cacert.pem'
 
 $cas_real_hosts = array('cas-real-1.example.com', 'cas-real-2.example.com')
 
 $client_domain = 'cas.fritschi.me'
 
 $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
 

Detailed Description

The purpose of this central config file is configuring all examples in one place with minimal work for your working environment Just configure all the items in this config according to your environment and rename the file to config.php

PHP Version 5

Definition in file config.php.

Variable Documentation

◆ $cas_context

$cas_context = '/cas'

Definition at line 30 of file config.php.

◆ $cas_host

$cas_host = 'cas.fritschi.me'

Definition at line 27 of file config.php.

◆ $cas_port

$cas_port = 8443

Definition at line 33 of file config.php.

◆ $cas_real_hosts

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

Definition at line 44 of file config.php.

◆ $cas_server_ca_cert_path

$cas_server_ca_cert_path = '/etc/tomcat8/conf/cacert.pem'

Definition at line 36 of file config.php.

◆ $cas_url

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

Definition at line 89 of file config.php.

◆ $client_domain

$client_domain = 'cas.fritschi.me'

Definition at line 47 of file config.php.

◆ $client_httpOnly

$client_httpOnly = true

Definition at line 50 of file config.php.

◆ $client_lifetime

$client_lifetime = 0

Definition at line 51 of file config.php.

◆ $client_path

$client_path = 'phpcas'

Definition at line 48 of file config.php.

◆ $client_secure

$client_secure = true

Definition at line 49 of file config.php.

◆ $curdir

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

Definition at line 75 of file config.php.

◆ $db

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

Definition at line 54 of file config.php.

◆ $db_password

$db_password = 'mysupersecretpass'

Definition at line 57 of file config.php.

◆ $db_table

$db_table = 'phpcastabel'

Definition at line 58 of file config.php.

◆ $db_user

$db_user = 'phpcasuser'

Definition at line 56 of file config.php.

◆ $driver_options

$driver_options = ''

Definition at line 59 of file config.php.

◆ $pgtBase

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

Definition at line 86 of file config.php.

◆ $pgtUrlRegexp

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

Definition at line 87 of file config.php.

◆ $phpcas_path

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

Definition at line 20 of file config.php.

◆ $rebroadcast_node_1

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

Definition at line 78 of file config.php.

◆ $rebroadcast_node_2

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

Definition at line 79 of file config.php.

◆ $serviceUrl

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

Definition at line 82 of file config.php.

◆ $serviceUrl2

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

Definition at line 84 of file config.php.

◆ else

if (isset( $_SERVER[ 'HTTPS']) &&$_SERVER[ 'HTTPS']=='on') else
Initial value:
{
$curbase = 'http://' . $_SERVER['SERVER_NAME']

Definition at line 68 of file config.php.