ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 911 of file Client.php.

918 {
919 // Argument validation
920 if (gettype($server_version) != 'string') {
921 throw new CAS_TypeMismatchException($server_version, '$server_version', 'string');
922 }
923 if (gettype($proxy) != 'boolean') {
924 throw new CAS_TypeMismatchException($proxy, '$proxy', 'boolean');
925 }
926 if (gettype($server_hostname) != 'string') {
927 throw new CAS_TypeMismatchException($server_hostname, '$server_hostname', 'string');
928 }
929 if (gettype($server_port) != 'integer') {
930 throw new CAS_TypeMismatchException($server_port, '$server_port', 'integer');
931 }
932 if (gettype($server_uri) != 'string') {
933 throw new CAS_TypeMismatchException($server_uri, '$server_uri', 'string');
934 }
935 if (gettype($changeSessionID) != 'boolean') {
936 throw new CAS_TypeMismatchException($changeSessionID, '$changeSessionID', 'boolean');
937 }
938
940 // true : allow to change the session_id(), false session_id won't be
941 // change and logout won't be handle because of that
942 $this->_setChangeSessionID($changeSessionID);
943
944 // skip Session Handling for logout requests and if don't want it'
945 if (session_id() == "" && !$this->_isLogoutRequest()) {
946 session_start();
947 phpCAS :: trace("Starting a new session " . session_id());
948 }
949 // Only for debug purposes
950 if ($this->isSessionAuthenticated()) {
951 phpCAS :: trace("Session is authenticated as: " . $_SESSION['phpCAS']['user']);
952 } else {
953 phpCAS :: trace("Session is not authenticated");
954 }
955 // are we in proxy mode ?
956 $this->_proxy = $proxy;
957
958 // Make cookie handling available.
959 if ($this->isProxy()) {
960 if (!isset($_SESSION['phpCAS'])) {
961 $_SESSION['phpCAS'] = array();
962 }
963 if (!isset($_SESSION['phpCAS']['service_cookies'])) {
964 $_SESSION['phpCAS']['service_cookies'] = array();
965 }
966 $this->_serviceCookieJar = new CAS_CookieJar(
967 $_SESSION['phpCAS']['service_cookies']
968 );
969 }
970
971 //check version
972 switch ($server_version) {
973 case CAS_VERSION_1_0:
974 if ($this->isProxy()) {
976 'CAS proxies are not supported in CAS ' . $server_version
977 );
978 }
979 break;
980 case CAS_VERSION_2_0:
981 case CAS_VERSION_3_0:
982 break;
983 case SAML_VERSION_1_1:
984 break;
985 default:
987 'this version of CAS (`' . $server_version
988 . '\') is not supported by phpCAS ' . phpCAS::getVersion()
989 );
990 }
991 $this->_server['version'] = $server_version;
992
993 // check hostname
994 if (empty($server_hostname)
995 || !preg_match('/[\.\d\-abcdefghijklmnopqrstuvwxyz]*/', $server_hostname)
996 ) {
997 phpCAS::error('bad CAS server hostname (`' . $server_hostname . '\')');
998 }
999 $this->_server['hostname'] = $server_hostname;
1000
1001 // check port
1002 if ($server_port == 0
1003 || !is_int($server_port)
1004 ) {
1005 phpCAS::error('bad CAS server port (`' . $server_hostname . '\')');
1006 }
1007 $this->_server['port'] = $server_port;
1008
1009 // check URI
1010 if (!preg_match('/[\.\d\-_abcdefghijklmnopqrstuvwxyz\/]*/', $server_uri)) {
1011 phpCAS::error('bad CAS server URI (`' . $server_uri . '\')');
1012 }
1013 // add leading and trailing `/' and remove doubles
1014 if (strstr($server_uri, '?') === false) {
1015 $server_uri .= '/';
1016 }
1017 $server_uri = preg_replace('/\/\//', '/', '/' . $server_uri);
1018 $this->_server['uri'] = $server_uri;
1019
1020 // set to callback mode if PgtIou and PgtId CGI GET parameters are provided
1021 if ($this->isProxy()) {
1022 $this->_setCallbackMode(!empty($_GET['pgtIou']) && !empty($_GET['pgtId']));
1023 }
1024
1025 if ($this->_isCallbackMode()) {
1026 //callback mode: check that phpCAS is secured
1027 if (!$this->_isHttps()) {
1029 'CAS proxies must be secured to use phpCAS; PGT\'s will not be received from the CAS server'
1030 );
1031 }
1032 } else {
1033 //normal mode: get ticket and remove it from CGI parameters for
1034 // developers
1035 $ticket = (isset($_GET['ticket']) ? $_GET['ticket'] : null);
1036 if (preg_match('/^[SP]T-/', $ticket)) {
1037 phpCAS::trace('Ticket \'' . $ticket . '\' found');
1038 $this->setTicket($ticket);
1039 unset($_GET['ticket']);
1040 } elseif (!empty($ticket)) {
1041 //ill-formed ticket, halt
1042 phpCAS::error(
1043 'ill-formed ticket found in the URL (ticket=`'
1044 . htmlentities($ticket) . '\')'
1045 );
1046 }
1047 }
1049 }
$_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:286
isSessionAuthenticated()
This method tells if the current session is authenticated.
Definition: Client.php:1565
_isLogoutRequest()
Check of the current request is a logout request.
Definition: Client.php:1749
_setCallbackMode($callback_mode)
This method sets/unsets callback mode.
Definition: Client.php:2388
_isCallbackMode()
This method returns true when the CAs client is running i callback mode, false otherwise.
Definition: Client.php:2399
_setChangeSessionID($allowed)
Set a parameter whether to allow phpCas to change session_id.
Definition: Client.php:1078
_isHttps()
This method checks to see if the request is secured via HTTPS.
Definition: Client.php:3742
isProxy()
Tells if a CAS client is a CAS proxy or not.
Definition: Client.php:2302
static trace($str)
This method is used to log something in debug mode.
Definition: CAS.php:599
static traceEnd($res='')
This method is used to indicate the end of the execution of a function in debug mode.
Definition: CAS.php:658
static traceBegin()
This method is used to indicate the start of the execution of a function in debug mode.
Definition: CAS.php:611
static error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:563
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 317 of file Client.php.

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

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 287 of file Client.php.

288 {
289 return $this->_server['hostname'];
290 }

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 297 of file Client.php.

298 {
299 return $this->_server['port'];
300 }

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 307 of file Client.php.

308 {
309 return $this->_server['uri'];
310 }

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 1078 of file Client.php.

1079 {
1080 $this->_change_session_id = $allowed;
1081 }

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 1088 of file Client.php.

1089 {
1091 }
$_change_session_id
A variable to whether phpcas will use its own session handling.
Definition: Client.php:1069

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 341 of file Client.php.

342 {
344 // the URL is build only when needed
345 if (empty($this->_server['login_url'])) {
346 $this->_server['login_url'] = $this->_buildQueryUrl($this->_getServerBaseURL() . 'login', 'service=' . urlencode($this->getURL()));
347 }
348 $url = $this->_server['login_url'];
349 if ($renew) {
350 // It is recommended that when the "renew" parameter is set, its
351 // value be "true"
352 $url = $this->_buildQueryUrl($url, 'renew=true');
353 } elseif ($gateway) {
354 // It is recommended that when the "gateway" parameter is set, its
355 // value be "true"
356 $url = $this->_buildQueryUrl($url, 'gateway=true');
357 }
359 return $url;
360 }
_getServerBaseURL()
This method is used to retrieve the base URL of the CAS server.
Definition: Client.php:317
_buildQueryUrl($url, $query)
This method is used to append query parameters to an url.
Definition: Client.php:3787
getURL()
This method returns the URL of the current request (without any ticket CGI parameter).
Definition: Client.php:3648
$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 549 of file Client.php.

550 {
551 // the URL is build only when needed
552 if (empty($this->_server['logout_url'])) {
553 $this->_server['logout_url'] = $this->_getServerBaseURL() . 'logout';
554 }
555 return $this->_server['logout_url'];
556 }

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 527 of file Client.php.

528 {
529 // the URL is build only when needed
530 if (empty($this->_server['proxy_url'])) {
531 switch ($this->getServerVersion()) {
532 case CAS_VERSION_1_0:
533 $this->_server['proxy_url'] = '';
534 break;
535 case CAS_VERSION_2_0:
536 case CAS_VERSION_3_0:
537 $this->_server['proxy_url'] = $this->_getServerBaseURL() . 'proxy';
538 break;
539 }
540 }
541 return $this->_server['proxy_url'];
542 }
getServerVersion()
This method is used to retrieve the version of the CAS server.
Definition: Client.php:277

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 496 of file Client.php.

497 {
499 // the URL is build only when needed
500 if (empty($this->_server['proxy_validate_url'])) {
501 switch ($this->getServerVersion()) {
502 case CAS_VERSION_1_0:
503 $this->_server['proxy_validate_url'] = '';
504 break;
505 case CAS_VERSION_2_0:
506 $this->_server['proxy_validate_url'] = $this->_getServerBaseURL() . 'proxyValidate';
507 break;
508 case CAS_VERSION_3_0:
509 $this->_server['proxy_validate_url'] = $this->_getServerBaseURL() . 'p3/proxyValidate';
510 break;
511 }
512 }
513 $url = $this->_buildQueryUrl(
514 $this->_server['proxy_validate_url'],
515 'service=' . urlencode($this->getURL())
516 );
518 return $url;
519 }

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 471 of file Client.php.

472 {
474 // the URL is build only when needed
475 if (empty($this->_server['saml_validate_url'])) {
476 switch ($this->getServerVersion()) {
477 case SAML_VERSION_1_1:
478 $this->_server['saml_validate_url'] = $this->_getServerBaseURL() . 'samlValidate';
479 break;
480 }
481 }
482
483 $url = $this->_buildQueryUrl(
484 $this->_server['saml_validate_url'],
485 'TARGET=' . urlencode($this->getURL())
486 );
488 return $url;
489 }

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 439 of file Client.php.

440 {
442 // the URL is build only when needed
443 if (empty($this->_server['service_validate_url'])) {
444 switch ($this->getServerVersion()) {
445 case CAS_VERSION_1_0:
446 $this->_server['service_validate_url'] = $this->_getServerBaseURL()
447 . 'validate';
448 break;
449 case CAS_VERSION_2_0:
450 $this->_server['service_validate_url'] = $this->_getServerBaseURL()
451 . 'serviceValidate';
452 break;
453 case CAS_VERSION_3_0:
454 $this->_server['service_validate_url'] = $this->_getServerBaseURL()
455 . 'p3/serviceValidate';
456 break;
457 }
458 }
459 $url = $this->_buildQueryUrl(
460 $this->_server['service_validate_url'],
461 'service=' . urlencode($this->getURL())
462 );
464 return $url;
465 }

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 277 of file Client.php.

278 {
279 return $this->_server['version'];
280 }

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 588 of file Client.php.

589 {
590 $this->_curl_options[$key] = $value;
591 }

◆ 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 369 of file Client.php.

370 {
371 // Argument Validation
372 if (gettype($url) != 'string') {
373 throw new CAS_TypeMismatchException($url, '$url', 'string');
374 }
375
376 return $this->_server['login_url'] = $url;
377 }

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 565 of file Client.php.

566 {
567 // Argument Validation
568 if (gettype($url) != 'string') {
569 throw new CAS_TypeMismatchException($url, '$url', 'string');
570 }
571
572 return $this->_server['logout_url'] = $url;
573 }

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 405 of file Client.php.

406 {
407 // Argument Validation
408 if (gettype($url) != 'string') {
409 throw new CAS_TypeMismatchException($url, '$url', 'string');
410 }
411
412 return $this->_server['proxy_validate_url'] = $url;
413 }

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 423 of file Client.php.

424 {
425 // Argument Validation
426 if (gettype($url) != 'string') {
427 throw new CAS_TypeMismatchException($url, '$url', 'string');
428 }
429
430 return $this->_server['saml_validate_url'] = $url;
431 }

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 387 of file Client.php.

388 {
389 // Argument Validation
390 if (gettype($url) != 'string') {
391 throw new CAS_TypeMismatchException($url, '$url', 'string');
392 }
393
394 return $this->_server['service_validate_url'] = $url;
395 }

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 1069 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 578 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 266 of file Client.php.