phpCAS  version 1.4.0
Functions
Initialization

Functions

static phpCAS::client ($server_version, $server_hostname, $server_port, $server_uri, $changeSessionID=true, \SessionHandlerInterface $sessionHandler=null)
 
static phpCAS::proxy ($server_version, $server_hostname, $server_port, $server_uri, $changeSessionID=true, \SessionHandlerInterface $sessionHandler=null)
 
static phpCAS::isInitialized ()
 

Detailed Description

Function Documentation

◆ client()

static phpCAS::client (   $server_version,
  $server_hostname,
  $server_port,
  $server_uri,
  $changeSessionID = true,
\SessionHandlerInterface  $sessionHandler = null 
)
static

phpCAS client initializer.

Parameters
string$server_versionthe version of the CAS server
string$server_hostnamethe hostname of the CAS server
int$server_portthe port the CAS server is running on
string$server_urithe URI the CAS server is responding on
bool$changeSessionIDAllow phpCAS to change the session_id (Single Sign Out/handleLogoutRequests is based on that change)
\SessionHandlerInterface$sessionHandlerthe session handler
Returns
void a newly created CAS_Client object
Note
Only one of the phpCAS::client() and phpCAS::proxy functions should be called, only once, and before all other methods (except phpCAS::getVersion() and phpCAS::setDebug()).
Examples:
example_advanced_saml11.php, example_custom_urls.php, example_gateway.php, example_html.php, example_lang.php, example_logout.php, example_service.php, example_service_POST.php, and example_simple.php.

Definition at line 345 of file CAS.php.

References phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().

◆ isInitialized()

static phpCAS::isInitialized ( )
static

Answer whether or not the client or proxy has been initialized

Returns
bool

Definition at line 425 of file CAS.php.

◆ proxy()

static phpCAS::proxy (   $server_version,
  $server_hostname,
  $server_port,
  $server_uri,
  $changeSessionID = true,
\SessionHandlerInterface  $sessionHandler = null 
)
static

phpCAS proxy initializer.

Parameters
string$server_versionthe version of the CAS server
string$server_hostnamethe hostname of the CAS server
string$server_portthe port the CAS server is running on
string$server_urithe URI the CAS server is responding on
bool$changeSessionIDAllow phpCAS to change the session_id (Single Sign Out/handleLogoutRequests is based on that change)
\SessionHandlerInterface$sessionHandlerthe session handler
Returns
void a newly created CAS_Client object
Note
Only one of the phpCAS::client() and phpCAS::proxy functions should be called, only once, and before all other methods (except phpCAS::getVersion() and phpCAS::setDebug()).
Examples:
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, and example_service_that_proxies.php.

Definition at line 391 of file CAS.php.

References phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().