tce_cas.php

Configuration file for CAS (Central Authentication Service) CAS is a centralize authentication service for the web where the user does not need to give their login credentials (password) to the target

Source: shared/config.default/tce_cas.php

Configuration file for CAS (Central Authentication Service) CAS is a centralize authentication service for the web where the user does not need to give their login credentials (password) to the target website. It was developed at Yale and is now maintained by the Java Architectures Special Interest Group and was sometimes referred to as “Yale CAS” but now known as “JA-SIG CAS”. For more information see: http://www.ja-sig.org/products/cas/ WARNING: TCExam trusts CAS mechanism and replicates any authenticated user into the TCExam database. Passwords are set to the username string, therefore, TCExam authentication is not secure for replicated users if CAS Authentication is turned off again.

Constants

K_CAS_ENABLED

If true enable CAS

const K_CAS_ENABLED = \false

Source: shared/config.default/tce_cas.php:32

K_CAS_HOST

CAS server hostname.

const K_CAS_HOST = ''

Source: shared/config.default/tce_cas.php:43

K_CAS_PATH

The location on the webserver where the CAS application is hosted.

Some setups don’t place the CAS application in the webserver’s root directory and we can specify where to find the CAS application. Default is ‘’.

const K_CAS_PATH = '/cas'

Source: shared/config.default/tce_cas.php:57

K_CAS_PORT

The port to connect to.

Defaults to 443

const K_CAS_PORT = 443

Source: shared/config.default/tce_cas.php:49

K_CAS_SERVICE_BASE_URL

Base URL of this TCExam service, used by phpCAS to build the service callback URL.

Required since phpCAS 1.6. Defaults to the current request scheme + host; override with an explicit value if TCExam runs behind a proxy or on a custom URL (e.g. ‘https://www.example.com’).

const K_CAS_SERVICE_BASE_URL = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || ($_SERVER['SERVER_PORT'] ?? \null) == 443 ? 'https://' : 'http://') . ($_SERVER['HTTP_HOST'] ?? 'localhost')

Source: shared/config.default/tce_cas.php:65

K_CAS_USER_GROUP_ID

Default user group ID This is the TCExam group ID to which the CAS accounts belongs.

You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.

const K_CAS_USER_GROUP_ID = 1

Source: shared/config.default/tce_cas.php:85

K_CAS_USER_LEVEL

Default user level

const K_CAS_USER_LEVEL = 1

Source: shared/config.default/tce_cas.php:78

K_CAS_VERSION

Version of CAS protocol to use.

Defaults to CAS_VERSION_2_0

const K_CAS_VERSION = '2.0'

Source: shared/config.default/tce_cas.php:38