ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Configuration
+ Collaboration diagram for Configuration:

Modules

 Internal behaviour of phpCAS
 
 HTML output
 
 Internationalization
 To add a new language:
 

Functions

 CAS_Client::getServerVersion ()
 This method is used to retrieve the version of the CAS server. More...
 
 CAS_Client::_getServerHostname ()
 This method is used to retrieve the hostname of the CAS server. More...
 
 CAS_Client::_getServerPort ()
 This method is used to retrieve the port of the CAS server. More...
 
 CAS_Client::_getServerURI ()
 This method is used to retrieve the URI of the CAS server. More...
 
 CAS_Client::_getServerBaseURL ()
 This method is used to retrieve the base URL of the CAS server. More...
 
 CAS_Client::getServerLoginURL ($gateway=false, $renew=false)
 This method is used to retrieve the login URL of the CAS server. More...
 
 CAS_Client::setServerLoginURL ($url)
 This method sets the login URL of the CAS server. More...
 
 CAS_Client::setServerServiceValidateURL ($url)
 This method sets the serviceValidate URL of the CAS server. More...
 
 CAS_Client::setServerProxyValidateURL ($url)
 This method sets the proxyValidate URL of the CAS server. More...
 
 CAS_Client::setServerSamlValidateURL ($url)
 This method sets the samlValidate URL of the CAS server. More...
 
 CAS_Client::getServerServiceValidateURL ()
 This method is used to retrieve the service validating URL of the CAS server. More...
 
 CAS_Client::getServerSamlValidateURL ()
 This method is used to retrieve the SAML validating URL of the CAS server. More...
 
 CAS_Client::getServerProxyValidateURL ()
 This method is used to retrieve the proxy validating URL of the CAS server. More...
 
 CAS_Client::getServerProxyURL ()
 This method is used to retrieve the proxy URL of the CAS server. More...
 
 CAS_Client::getServerLogoutURL ()
 This method is used to retrieve the logout URL of the CAS server. More...
 
 CAS_Client::setServerLogoutURL ($url)
 This method sets the logout URL of the CAS server. More...
 
 CAS_Client::setExtraCurlOption ($key, $value)
 This method is used to set additional user curl options. More...
 
 CAS_Client::__construct ( $server_version, $proxy, $server_hostname, $server_port, $server_uri, $changeSessionID=true)
 CAS_Client constructor. More...
 
 CAS_Client::_setChangeSessionID ($allowed)
 Set a parameter whether to allow phpCas to change session_id. More...
 
 CAS_Client::getChangeSessionID ()
 Get whether phpCas is allowed to change session_id. More...
 

Variables

 CAS_Client::$_server
 a record to store information about the CAS server. More...
 
 CAS_Client::$_curl_options = array()
 An array to store extra curl options. More...
 
 CAS_Client::$_change_session_id
 A variable to whether phpcas will use its own session handling. More...
 

Detailed Description

Function Documentation

◆ __construct()

CAS_Client::__construct (   $server_version,
  $proxy,
  $server_hostname,
  $server_port,
  $server_uri,
  $changeSessionID = true 
)

CAS_Client constructor.

Parameters
string$server_versionthe version of the CAS server
bool$proxytrue if the CAS client is a CAS proxy
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)
Returns
a newly created CAS_Client object

Definition at line 902 of file Client.php.

909 {
910 // Argument validation
911 if (gettype($server_version) != 'string')
912 throw new CAS_TypeMismatchException($server_version, '$server_version', 'string');
913 if (gettype($proxy) != 'boolean')
914 throw new CAS_TypeMismatchException($proxy, '$proxy', 'boolean');
915 if (gettype($server_hostname) != 'string')
916 throw new CAS_TypeMismatchException($server_hostname, '$server_hostname', 'string');
917 if (gettype($server_port) != 'integer')
918 throw new CAS_TypeMismatchException($server_port, '$server_port', 'integer');
919 if (gettype($server_uri) != 'string')
920 throw new CAS_TypeMismatchException($server_uri, '$server_uri', 'string');
921 if (gettype($changeSessionID) != 'boolean')
922 throw new CAS_TypeMismatchException($changeSessionID, '$changeSessionID', 'boolean');
923
925 // true : allow to change the session_id(), false session_id won't be
926 // change and logout won't be handle because of that
927 $this->_setChangeSessionID($changeSessionID);
928
929 // skip Session Handling for logout requests and if don't want it'
930 if (session_id()=="" && !$this->_isLogoutRequest()) {
931 session_start();
932 phpCAS :: trace("Starting a new session " . session_id());
933 }
934 // Only for debug purposes
935 if ($this->isSessionAuthenticated()){
936 phpCAS :: trace("Session is authenticated as: " . $_SESSION['phpCAS']['user']);
937 } else {
938 phpCAS :: trace("Session is not authenticated");
939 }
940 // are we in proxy mode ?
941 $this->_proxy = $proxy;
942
943 // Make cookie handling available.
944 if ($this->isProxy()) {
945 if (!isset($_SESSION['phpCAS'])) {
946 $_SESSION['phpCAS'] = array();
947 }
948 if (!isset($_SESSION['phpCAS']['service_cookies'])) {
949 $_SESSION['phpCAS']['service_cookies'] = array();
950 }
951 $this->_serviceCookieJar = new CAS_CookieJar(
952 $_SESSION['phpCAS']['service_cookies']
953 );
954 }
955
956 //check version
957 switch ($server_version) {
958 case CAS_VERSION_1_0:
959 if ( $this->isProxy() ) {
961 'CAS proxies are not supported in CAS '.$server_version
962 );
963 }
964 break;
965 case CAS_VERSION_2_0:
966 case CAS_VERSION_3_0:
967 break;
968 case SAML_VERSION_1_1:
969 break;
970 default:
972 'this version of CAS (`'.$server_version
973 .'\') is not supported by phpCAS '.phpCAS::getVersion()
974 );
975 }
976 $this->_server['version'] = $server_version;
977
978 // check hostname
979 if ( empty($server_hostname)
980 || !preg_match('/[\.\d\-abcdefghijklmnopqrstuvwxyz]*/', $server_hostname)
981 ) {
982 phpCAS::error('bad CAS server hostname (`'.$server_hostname.'\')');
983 }
984 $this->_server['hostname'] = $server_hostname;
985
986 // check port
987 if ( $server_port == 0
988 || !is_int($server_port)
989 ) {
990 phpCAS::error('bad CAS server port (`'.$server_hostname.'\')');
991 }
992 $this->_server['port'] = $server_port;
993
994 // check URI
995 if ( !preg_match('/[\.\d\-_abcdefghijklmnopqrstuvwxyz\/]*/', $server_uri) ) {
996 phpCAS::error('bad CAS server URI (`'.$server_uri.'\')');
997 }
998 // add leading and trailing `/' and remove doubles
999 if(strstr($server_uri, '?') === false) $server_uri .= '/';
1000 $server_uri = preg_replace('/\/\//', '/', '/'.$server_uri);
1001 $this->_server['uri'] = $server_uri;
1002
1003 // set to callback mode if PgtIou and PgtId CGI GET parameters are provided
1004 if ( $this->isProxy() ) {
1005 $this->_setCallbackMode(!empty($_GET['pgtIou'])&&!empty($_GET['pgtId']));
1006 }
1007
1008 if ( $this->_isCallbackMode() ) {
1009 //callback mode: check that phpCAS is secured
1010 if ( !$this->_isHttps() ) {
1012 'CAS proxies must be secured to use phpCAS; PGT\'s will not be received from the CAS server'
1013 );
1014 }
1015 } else {
1016 //normal mode: get ticket and remove it from CGI parameters for
1017 // developers
1018 $ticket = (isset($_GET['ticket']) ? $_GET['ticket'] : null);
1019 if (preg_match('/^[SP]T-/', $ticket) ) {
1020 phpCAS::trace('Ticket \''.$ticket.'\' found');
1021 $this->setTicket($ticket);
1022 unset($_GET['ticket']);
1023 } else if ( !empty($ticket) ) {
1024 //ill-formed ticket, halt
1025 phpCAS::error(
1026 'ill-formed ticket found in the URL (ticket=`'
1027 .htmlentities($ticket).'\')'
1028 );
1029 }
1030
1031 }
1033 }
$_GET["client_id"]
$_SESSION["AccountId"]
This class provides access to service cookies and handles parsing of response headers to pull out coo...
Definition: CookieJar.php:42
Licensed to Jasig under one or more contributor license agreements.
The phpCAS class is a simple container for the phpCAS library.
Definition: CAS.php:279
isSessionAuthenticated()
This method tells if the current session is authenticated.
Definition: Client.php:1536
_isLogoutRequest()
Check of the current request is a logout request.
Definition: Client.php:1720
_setCallbackMode($callback_mode)
This method sets/unsets callback mode.
Definition: Client.php:2328
_isCallbackMode()
This method returns true when the CAs client is running i callback mode, false otherwise.
Definition: Client.php:2339
_setChangeSessionID($allowed)
Set a parameter whether to allow phpCas to change session_id.
Definition: Client.php:1062
_isHttps()
This method checks to see if the request is secured via HTTPS.
Definition: Client.php:3617
isProxy()
Tells if a CAS client is a CAS proxy or not.
Definition: Client.php:2242
static trace($str)
This method is used to log something in debug mode.
Definition: CAS.php:579
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
Definition: CAS.php:638
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode.
Definition: CAS.php:591
static error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:543
const CAS_VERSION_3_0
CAS version 3.0.
Definition: CAS.php:82
const SAML_VERSION_1_1
SAML protocol.
Definition: CAS.php:91
const CAS_VERSION_1_0
CAS version 1.0.
Definition: CAS.php:74
const CAS_VERSION_2_0
Definition: CAS.php:78

References $_GET, $_SESSION, CAS_Client\_isCallbackMode(), CAS_Client\_isHttps(), CAS_Client\_isLogoutRequest(), CAS_Client\_setCallbackMode(), CAS_Client\_setChangeSessionID(), CAS_VERSION_1_0, CAS_VERSION_2_0, CAS_VERSION_3_0, phpCAS\error(), CAS_Client\isProxy(), CAS_Client\isSessionAuthenticated(), SAML_VERSION_1_1, phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().

+ Here is the call graph for this function:

◆ _getServerBaseURL()

CAS_Client::_getServerBaseURL ( )
private

This method is used to retrieve the base URL of the CAS server.

Returns
string a URL.

Definition at line 313 of file Client.php.

314 {
315 // the URL is build only when needed
316 if ( empty($this->_server['base_url']) ) {
317 $this->_server['base_url'] = 'https://' . $this->_getServerHostname();
318 if ($this->_getServerPort()!=443) {
319 $this->_server['base_url'] .= ':'
320 .$this->_getServerPort();
321 }
322 $this->_server['base_url'] .= $this->_getServerURI();
323 }
324 return $this->_server['base_url'];
325 }
_getServerHostname()
This method is used to retrieve the hostname of the CAS server.
Definition: Client.php:283
_getServerURI()
This method is used to retrieve the URI of the CAS server.
Definition: Client.php:303
_getServerPort()
This method is used to retrieve the port of the CAS server.
Definition: Client.php:293

References CAS_Client\_getServerHostname(), CAS_Client\_getServerPort(), and CAS_Client\_getServerURI().

Referenced by CAS_Client\_htmlFilterOutput(), CAS_Client\getServerLoginURL(), CAS_Client\getServerLogoutURL(), CAS_Client\getServerProxyURL(), CAS_Client\getServerProxyValidateURL(), CAS_Client\getServerSamlValidateURL(), and CAS_Client\getServerServiceValidateURL().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getServerHostname()

CAS_Client::_getServerHostname ( )
private

This method is used to retrieve the hostname of the CAS server.

Returns
string the hostname of the CAS server.

Definition at line 283 of file Client.php.

284 {
285 return $this->_server['hostname'];
286 }

Referenced by CAS_Client\_getServerBaseURL(), and CAS_Client\handleLogoutRequests().

+ Here is the caller graph for this function:

◆ _getServerPort()

CAS_Client::_getServerPort ( )
private

This method is used to retrieve the port of the CAS server.

Returns
string the port of the CAS server.

Definition at line 293 of file Client.php.

294 {
295 return $this->_server['port'];
296 }

Referenced by CAS_Client\_getServerBaseURL().

+ Here is the caller graph for this function:

◆ _getServerURI()

CAS_Client::_getServerURI ( )
private

This method is used to retrieve the URI of the CAS server.

Returns
string a URI.

Definition at line 303 of file Client.php.

304 {
305 return $this->_server['uri'];
306 }

Referenced by CAS_Client\_getServerBaseURL().

+ Here is the caller graph for this function:

◆ _setChangeSessionID()

CAS_Client::_setChangeSessionID (   $allowed)
private

Set a parameter whether to allow phpCas to change session_id.

Parameters
bool$allowedallow phpCas to change session_id
Returns
void

Definition at line 1062 of file Client.php.

1063 {
1064 $this->_change_session_id = $allowed;
1065 }

Referenced by CAS_Client\__construct().

+ Here is the caller graph for this function:

◆ getChangeSessionID()

CAS_Client::getChangeSessionID ( )

Get whether phpCas is allowed to change session_id.

Returns
bool

Definition at line 1072 of file Client.php.

1073 {
1075 }
$_change_session_id
A variable to whether phpcas will use its own session handling.
Definition: Client.php:1053

References CAS_Client\$_change_session_id.

Referenced by CAS_Client\_renameSession(), and CAS_Client\handleLogoutRequests().

+ Here is the caller graph for this function:

◆ getServerLoginURL()

CAS_Client::getServerLoginURL (   $gateway = false,
  $renew = false 
)

This method is used to retrieve the login URL of the CAS server.

Parameters
bool$gatewaytrue to check authentication, false to force it
bool$renewtrue to force the authentication with the CAS server
Returns
a URL.
Note
It is recommended that CAS implementations ignore the "gateway" parameter if "renew" is set

Definition at line 337 of file Client.php.

338 {
340 // the URL is build only when needed
341 if ( empty($this->_server['login_url']) ) {
342 $this->_server['login_url'] = $this->_buildQueryUrl($this->_getServerBaseURL().'login','service='.urlencode($this->getURL()));
343 }
344 $url = $this->_server['login_url'];
345 if ($renew) {
346 // It is recommended that when the "renew" parameter is set, its
347 // value be "true"
348 $url = $this->_buildQueryUrl($url, 'renew=true');
349 } elseif ($gateway) {
350 // It is recommended that when the "gateway" parameter is set, its
351 // value be "true"
352 $url = $this->_buildQueryUrl($url, 'gateway=true');
353 }
355 return $url;
356 }
_getServerBaseURL()
This method is used to retrieve the base URL of the CAS server.
Definition: Client.php:313
_buildQueryUrl($url, $query)
This method is used to append query parameters to an url.
Definition: Client.php:3662
getURL()
This method returns the URL of the current request (without any ticket CGI parameter).
Definition: Client.php:3524
$url

References $url, CAS_Client\_buildQueryUrl(), CAS_Client\_getServerBaseURL(), CAS_Client\getURL(), phpCAS\traceBegin(), and phpCAS\traceEnd().

Referenced by CAS_Client\redirectToCas().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getServerLogoutURL()

CAS_Client::getServerLogoutURL ( )

This method is used to retrieve the logout URL of the CAS server.

Returns
string logout URL.

Definition at line 541 of file Client.php.

542 {
543 // the URL is build only when needed
544 if ( empty($this->_server['logout_url']) ) {
545 $this->_server['logout_url'] = $this->_getServerBaseURL().'logout';
546 }
547 return $this->_server['logout_url'];
548 }

References CAS_Client\_getServerBaseURL().

Referenced by CAS_Client\logout().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getServerProxyURL()

CAS_Client::getServerProxyURL ( )

This method is used to retrieve the proxy URL of the CAS server.

Returns
string proxy URL.

Definition at line 519 of file Client.php.

520 {
521 // the URL is build only when needed
522 if ( empty($this->_server['proxy_url']) ) {
523 switch ($this->getServerVersion()) {
524 case CAS_VERSION_1_0:
525 $this->_server['proxy_url'] = '';
526 break;
527 case CAS_VERSION_2_0:
528 case CAS_VERSION_3_0:
529 $this->_server['proxy_url'] = $this->_getServerBaseURL().'proxy';
530 break;
531 }
532 }
533 return $this->_server['proxy_url'];
534 }
getServerVersion()
This method is used to retrieve the version of the CAS server.
Definition: Client.php:273

References CAS_Client\_getServerBaseURL(), CAS_VERSION_1_0, CAS_VERSION_2_0, CAS_VERSION_3_0, and CAS_Client\getServerVersion().

Referenced by CAS_Client\retrievePT().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getServerProxyValidateURL()

CAS_Client::getServerProxyValidateURL ( )

This method is used to retrieve the proxy validating URL of the CAS server.

Returns
string proxyValidate URL.

Definition at line 488 of file Client.php.

489 {
491 // the URL is build only when needed
492 if ( empty($this->_server['proxy_validate_url']) ) {
493 switch ($this->getServerVersion()) {
494 case CAS_VERSION_1_0:
495 $this->_server['proxy_validate_url'] = '';
496 break;
497 case CAS_VERSION_2_0:
498 $this->_server['proxy_validate_url'] = $this->_getServerBaseURL().'proxyValidate';
499 break;
500 case CAS_VERSION_3_0:
501 $this->_server['proxy_validate_url'] = $this->_getServerBaseURL().'p3/proxyValidate';
502 break;
503 }
504 }
505 $url = $this->_buildQueryUrl(
506 $this->_server['proxy_validate_url'],
507 'service='.urlencode($this->getURL())
508 );
510 return $url;
511 }

References $url, CAS_Client\_buildQueryUrl(), CAS_Client\_getServerBaseURL(), CAS_VERSION_1_0, CAS_VERSION_2_0, CAS_VERSION_3_0, CAS_Client\getServerVersion(), CAS_Client\getURL(), phpCAS\traceBegin(), and phpCAS\traceEnd().

Referenced by CAS_Client\validateCAS20().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getServerSamlValidateURL()

CAS_Client::getServerSamlValidateURL ( )

This method is used to retrieve the SAML validating URL of the CAS server.

Returns
string samlValidate URL.

Definition at line 463 of file Client.php.

464 {
466 // the URL is build only when needed
467 if ( empty($this->_server['saml_validate_url']) ) {
468 switch ($this->getServerVersion()) {
469 case SAML_VERSION_1_1:
470 $this->_server['saml_validate_url'] = $this->_getServerBaseURL().'samlValidate';
471 break;
472 }
473 }
474
475 $url = $this->_buildQueryUrl(
476 $this->_server['saml_validate_url'],
477 'TARGET='.urlencode($this->getURL())
478 );
480 return $url;
481 }

References $url, CAS_Client\_buildQueryUrl(), CAS_Client\_getServerBaseURL(), CAS_Client\getServerVersion(), CAS_Client\getURL(), SAML_VERSION_1_1, phpCAS\traceBegin(), and phpCAS\traceEnd().

+ Here is the call graph for this function:

◆ getServerServiceValidateURL()

CAS_Client::getServerServiceValidateURL ( )

This method is used to retrieve the service validating URL of the CAS server.

Returns
string serviceValidate URL.

Definition at line 431 of file Client.php.

432 {
434 // the URL is build only when needed
435 if ( empty($this->_server['service_validate_url']) ) {
436 switch ($this->getServerVersion()) {
437 case CAS_VERSION_1_0:
438 $this->_server['service_validate_url'] = $this->_getServerBaseURL()
439 .'validate';
440 break;
441 case CAS_VERSION_2_0:
442 $this->_server['service_validate_url'] = $this->_getServerBaseURL()
443 .'serviceValidate';
444 break;
445 case CAS_VERSION_3_0:
446 $this->_server['service_validate_url'] = $this->_getServerBaseURL()
447 .'p3/serviceValidate';
448 break;
449 }
450 }
451 $url = $this->_buildQueryUrl(
452 $this->_server['service_validate_url'],
453 'service='.urlencode($this->getURL())
454 );
456 return $url;
457 }

References $url, CAS_Client\_buildQueryUrl(), CAS_Client\_getServerBaseURL(), CAS_VERSION_1_0, CAS_VERSION_2_0, CAS_VERSION_3_0, CAS_Client\getServerVersion(), CAS_Client\getURL(), phpCAS\traceBegin(), and phpCAS\traceEnd().

Referenced by CAS_Client\validateCAS10(), and CAS_Client\validateCAS20().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getServerVersion()

CAS_Client::getServerVersion ( )

This method is used to retrieve the version of the CAS server.

Returns
string the version of the CAS server.

Definition at line 273 of file Client.php.

274 {
275 return $this->_server['version'];
276 }

Referenced by CAS_Client\_authError(), CAS_Client\_htmlFilterOutput(), CAS_Client\_readURL(), CAS_Client\getServerProxyURL(), CAS_Client\getServerProxyValidateURL(), CAS_Client\getServerSamlValidateURL(), CAS_Client\getServerServiceValidateURL(), and CAS_Client\isAuthenticated().

+ Here is the caller graph for this function:

◆ setExtraCurlOption()

CAS_Client::setExtraCurlOption (   $key,
  $value 
)

This method is used to set additional user curl options.

Parameters
string$keyname of the curl option
string$valuevalue of the curl option
Returns
void

Definition at line 579 of file Client.php.

580 {
581 $this->_curl_options[$key] = $value;
582 }
$key
Definition: croninfo.php:18

References $key.

◆ setServerLoginURL()

CAS_Client::setServerLoginURL (   $url)

This method sets the login URL of the CAS server.

Parameters
string$urlthe login URL
Returns
string login url

Definition at line 365 of file Client.php.

366 {
367 // Argument Validation
368 if (gettype($url) != 'string')
369 throw new CAS_TypeMismatchException($url, '$url', 'string');
370
371 return $this->_server['login_url'] = $url;
372 }

References $url.

◆ setServerLogoutURL()

CAS_Client::setServerLogoutURL (   $url)

This method sets the logout URL of the CAS server.

Parameters
string$urlthe logout URL
Returns
string logout url

Definition at line 557 of file Client.php.

558 {
559 // Argument Validation
560 if (gettype($url) != 'string')
561 throw new CAS_TypeMismatchException($url, '$url', 'string');
562
563 return $this->_server['logout_url'] = $url;
564 }

References $url.

◆ setServerProxyValidateURL()

CAS_Client::setServerProxyValidateURL (   $url)

This method sets the proxyValidate URL of the CAS server.

Parameters
string$urlthe proxyValidate URL
Returns
string proxyValidate URL

Definition at line 399 of file Client.php.

400 {
401 // Argument Validation
402 if (gettype($url) != 'string')
403 throw new CAS_TypeMismatchException($url, '$url', 'string');
404
405 return $this->_server['proxy_validate_url'] = $url;
406 }

References $url.

◆ setServerSamlValidateURL()

CAS_Client::setServerSamlValidateURL (   $url)

This method sets the samlValidate URL of the CAS server.

Parameters
string$urlthe samlValidate URL
Returns
string samlValidate URL

Definition at line 416 of file Client.php.

417 {
418 // Argument Validation
419 if (gettype($url) != 'string')
420 throw new CAS_TypeMismatchException($url, '$url', 'string');
421
422 return $this->_server['saml_validate_url'] = $url;
423 }

References $url.

◆ setServerServiceValidateURL()

CAS_Client::setServerServiceValidateURL (   $url)

This method sets the serviceValidate URL of the CAS server.

Parameters
string$urlthe serviceValidate URL
Returns
string serviceValidate URL

Definition at line 382 of file Client.php.

383 {
384 // Argument Validation
385 if (gettype($url) != 'string')
386 throw new CAS_TypeMismatchException($url, '$url', 'string');
387
388 return $this->_server['service_validate_url'] = $url;
389 }

References $url.

Variable Documentation

◆ $_change_session_id

CAS_Client::$_change_session_id
private

A variable to whether phpcas will use its own session handling.

Default = true

Definition at line 1053 of file Client.php.

Referenced by CAS_Client\getChangeSessionID().

◆ $_curl_options

CAS_Client::$_curl_options = array()
private

An array to store extra curl options.

Definition at line 569 of file Client.php.

◆ $_server

CAS_Client::$_server
private

a record to store information about the CAS server.

  • $_server['version']: the version of the CAS server
  • $_server['hostname']: the hostname of the CAS server
  • $_server['port']: the port the CAS server is running on
  • $_server['uri']: the base URI the CAS server is responding on
  • $_server['base_url']: the base URL of the CAS server
  • $_server['login_url']: the login URL of the CAS server
  • $_server['service_validate_url']: the service validating URL of the CAS server
  • $_server['proxy_url']: the proxy URL of the CAS server
  • $_server['proxy_validate_url']: the proxy validating URL of the CAS server
  • $_server['logout_url']: the logout URL of the CAS server

$_server['version'], $_server['hostname'], $_server['port'] and $_server['uri'] are written by CAS_Client::CAS_Client(), read by CAS_Client::getServerVersion(), CAS_Client::_getServerHostname(), CAS_Client::_getServerPort() and CAS_Client::_getServerURI().

The other fields are written and read by CAS_Client::_getServerBaseURL(), CAS_Client::getServerLoginURL(), CAS_Client::getServerServiceValidateURL(), CAS_Client::getServerProxyValidateURL() and CAS_Client::getServerLogoutURL().

Definition at line 262 of file Client.php.