Table of contents
Package: com\tecnick\tcexam\shared\cfg
Tags
- file: 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.
- author: Tim Gebhardt
- since: 2009-02-06
Constants
K_CAS_ENABLED
File: tce_cas.php line 32
public mixed K_CAS_ENABLED = \false
K_CAS_HOST
File: tce_cas.php line 43
public mixed K_CAS_HOST = ''
K_CAS_PATH
File: tce_cas.php line 57
public mixed K_CAS_PATH = '/cas'
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 ‘’.
K_CAS_PORT
File: tce_cas.php line 49
public mixed K_CAS_PORT = 443
Defaults to 443
K_CAS_SERVICE_BASE_URL
File: tce_cas.php line 65
public mixed K_CAS_SERVICE_BASE_URL = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || ($_SERVER['SERVER_PORT'] ?? \null) == 443 ? 'https://' : 'http://') . ($_SERVER['HTTP_HOST'] ?? 'localhost')
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’).
K_CAS_USER_GROUP_ID
File: tce_cas.php line 85
public mixed K_CAS_USER_GROUP_ID = 1
You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.
K_CAS_USER_LEVEL
File: tce_cas.php line 78
public mixed K_CAS_USER_LEVEL = 1
K_CAS_VERSION
File: tce_cas.php line 38
public mixed K_CAS_VERSION = '2.0'
Defaults to CAS_VERSION_2_0