phpCAS
version 1.4.0
|
Modules | |
Internal behaviour of phpCAS | |
HTML output | |
Internationalization | |
Variables | |
CAS_Client::$_server | |
CAS_Client::$_curl_options = array() | |
const | CAS_Client::PHPCAS_SESSION_PREFIX = 'phpCAS' |
CAS_Client::$_change_session_id = true | |
CAS_Client::$_sessionHandler | |
CAS_Client::__construct | ( | $server_version, | |
$proxy, | |||
$server_hostname, | |||
$server_port, | |||
$server_uri, | |||
$changeSessionID = true , |
|||
\SessionHandlerInterface | $sessionHandler = null |
||
) |
CAS_Client constructor.
string | $server_version | the version of the CAS server |
bool | $proxy | true if the CAS client is a CAS proxy |
string | $server_hostname | the hostname of the CAS server |
int | $server_port | the port the CAS server is running on |
string | $server_uri | the URI the CAS server is responding on |
bool | $changeSessionID | Allow phpCAS to change the session_id (Single Sign Out/handleLogoutRequests is based on that change) |
\SessionHandlerInterface | $sessionHandler | the session handler |
Definition at line 905 of file Client.php.
References CAS_Client\_isCallbackMode(), CAS_Client\_isHttps(), CAS_Client\_isLogoutRequest(), CAS_Client\_setCallbackMode(), CAS_Client\_setCallbackModeUsingPost(), CAS_Client\_setChangeSessionID(), phpCAS\error(), CAS_Client\getSessionValue(), phpCAS\getSupportedProtocols(), CAS_Client\hasSessionValue(), CAS_Client\isProxy(), CAS_Client\isSessionAuthenticated(), CAS_Client\setSessionHandler(), CAS_Client\setSessionValue(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
private |
This method is used to retrieve the base URL of the CAS server.
Definition at line 315 of file Client.php.
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().
|
private |
This method is used to retrieve the hostname of the CAS server.
Definition at line 285 of file Client.php.
Referenced by CAS_Client\_getServerBaseURL(), and CAS_Client\handleLogoutRequests().
|
private |
This method is used to retrieve the port of the CAS server.
Definition at line 295 of file Client.php.
Referenced by CAS_Client\_getServerBaseURL().
|
private |
This method is used to retrieve the URI of the CAS server.
Definition at line 305 of file Client.php.
Referenced by CAS_Client\_getServerBaseURL().
|
protected |
Renaming the session
string | $ticket | name of the ticket |
Definition at line 1221 of file Client.php.
References CAS_Client\_sessionIdForTicket(), CAS_Client\getChangeSessionID(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\validateSA().
|
private |
Set a parameter whether to allow phpCAS to change session_id
bool | $allowed | allow phpCAS to change session_id |
Definition at line 1091 of file Client.php.
Referenced by CAS_Client\__construct().
|
protected |
Remove all phpCAS session values.
Definition at line 1193 of file Client.php.
Referenced by CAS_Client\_wasPreviouslyAuthenticated().
CAS_Client::getChangeSessionID | ( | ) |
Get whether phpCAS is allowed to change session_id
Definition at line 1101 of file Client.php.
References CAS_Client\$_change_session_id.
Referenced by CAS_Client\_renameSession(), and CAS_Client\handleLogoutRequests().
CAS_Client::getServerLoginURL | ( | $gateway = false , |
|
$renew = false |
|||
) |
This method is used to retrieve the login URL of the CAS server.
bool | $gateway | true to check authentication, false to force it |
bool | $renew | true to force the authentication with the CAS server |
Definition at line 339 of file Client.php.
References CAS_Client\_buildQueryUrl(), CAS_Client\_getServerBaseURL(), CAS_Client\getURL(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by CAS_Client\redirectToCas().
CAS_Client::getServerLogoutURL | ( | ) |
This method is used to retrieve the logout URL of the CAS server.
Definition at line 543 of file Client.php.
References CAS_Client\_getServerBaseURL().
Referenced by CAS_Client\logout().
CAS_Client::getServerProxyURL | ( | ) |
This method is used to retrieve the proxy URL of the CAS server.
Definition at line 521 of file Client.php.
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().
CAS_Client::getServerProxyValidateURL | ( | ) |
This method is used to retrieve the proxy validating URL of the CAS server.
Definition at line 490 of file Client.php.
References 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().
CAS_Client::getServerSamlValidateURL | ( | ) |
This method is used to retrieve the SAML validating URL of the CAS server.
Definition at line 465 of file Client.php.
References CAS_Client\_buildQueryUrl(), CAS_Client\_getServerBaseURL(), CAS_Client\getServerVersion(), CAS_Client\getURL(), SAML_VERSION_1_1, phpCAS\traceBegin(), and phpCAS\traceEnd().
CAS_Client::getServerServiceValidateURL | ( | ) |
This method is used to retrieve the service validating URL of the CAS server.
Definition at line 433 of file Client.php.
References 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().
CAS_Client::getServerVersion | ( | ) |
This method is used to retrieve the version of the CAS server.
Definition at line 275 of file Client.php.
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().
|
protected |
Get a session value using the given key.
string | $key | |
mixed | $default | default value if the key is not set |
Definition at line 1130 of file Client.php.
References CAS_Client\validateSession().
Referenced by CAS_Client\__construct(), CAS_Client\_wasPreviouslyAuthenticated(), CAS_Client\checkAuthentication(), and CAS_Client\isSessionAuthenticated().
|
protected |
Determine whether a session value is set or not.
To check if a session value is empty or not please use !!(getSessionValue($key)).
string | $key |
Definition at line 1151 of file Client.php.
References CAS_Client\validateSession().
Referenced by CAS_Client\__construct(), and CAS_Client\_wasPreviouslyAuthenticated().
|
protected |
Remove a session value with the given key.
string | $key |
Definition at line 1178 of file Client.php.
References CAS_Client\validateSession().
Referenced by CAS_Client\checkAuthentication(), CAS_Client\forceAuthentication(), and CAS_Client\renewAuthentication().
CAS_Client::setExtraCurlOption | ( | $key, | |
$value | |||
) |
This method is used to set additional user curl options.
string | $key | name of the curl option |
string | $value | value of the curl option |
Definition at line 581 of file Client.php.
CAS_Client::setServerLoginURL | ( | $url | ) |
This method sets the login URL of the CAS server.
string | $url | the login URL |
Definition at line 367 of file Client.php.
CAS_Client::setServerLogoutURL | ( | $url | ) |
This method sets the logout URL of the CAS server.
string | $url | the logout URL |
Definition at line 559 of file Client.php.
CAS_Client::setServerProxyValidateURL | ( | $url | ) |
This method sets the proxyValidate URL of the CAS server.
string | $url | the proxyValidate URL |
Definition at line 401 of file Client.php.
CAS_Client::setServerSamlValidateURL | ( | $url | ) |
This method sets the samlValidate URL of the CAS server.
string | $url | the samlValidate URL |
Definition at line 418 of file Client.php.
CAS_Client::setServerServiceValidateURL | ( | $url | ) |
This method sets the serviceValidate URL of the CAS server.
string | $url | the serviceValidate URL |
Definition at line 384 of file Client.php.
CAS_Client::setSessionHandler | ( | \SessionHandlerInterface | $sessionHandler | ) |
Set the session handler.
\SessionHandlerInterface | $sessionHandler |
Definition at line 1113 of file Client.php.
Referenced by CAS_Client\__construct().
|
protected |
Set a session value using the given key and value.
string | $key | |
mixed | $value |
Definition at line 1166 of file Client.php.
References CAS_Client\validateSession().
Referenced by CAS_Client\__construct(), CAS_Client\checkAuthentication(), and CAS_Client\isAuthenticated().
|
protected |
Ensure $key is a string for session utils input
string | $key |
Definition at line 1205 of file Client.php.
Referenced by CAS_Client\getSessionValue(), CAS_Client\hasSessionValue(), CAS_Client\removeSessionValue(), and CAS_Client\setSessionValue().
|
private |
Definition at line 1077 of file Client.php.
Referenced by CAS_Client\getChangeSessionID().
|
private |
An array to store extra curl options.
Definition at line 571 of file Client.php.
|
private |
a record to store information about 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 264 of file Client.php.
|
private |
Definition at line 1082 of file Client.php.
const CAS_Client::PHPCAS_SESSION_PREFIX = 'phpCAS' |
The session prefix for phpCAS values
Definition at line 1071 of file Client.php.