ILIAS
Release_4_1_x_branch Revision 61804
|
Functions | |
phpCAS::setCacheTimesForAuthRecheck ($n) | |
Set the times authentication will be cached before really accessing the CAS server in gateway mode: | |
phpCAS::checkAuthentication () | |
This method is called to check if the user is authenticated (use the gateway feature). | |
phpCAS::forceAuthentication () | |
This method is called to force authentication if the user was not already authenticated. | |
phpCAS::renewAuthentication () | |
This method is called to renew the authentication. | |
phpCAS::authenticate () | |
This method has been left from version 0.4.1 for compatibility reasons. | |
phpCAS::isAuthenticated () | |
This method is called to check if the user is authenticated (previously or by tickets given in the URL). | |
phpCAS::isSessionAuthenticated () | |
Checks whether authenticated based on $_SESSION. | |
phpCAS::getUser () | |
This method returns the CAS user's login name. | |
phpCAS::getAttributes () | |
This method returns the CAS user's login name. | |
phpCAS::handleLogoutRequests ($check_client=true, $allowed_clients=false) | |
Handle logout requests. | |
phpCAS::getServerLoginURL () | |
This method returns the URL to be used to login. | |
phpCAS::setServerLoginURL ($url= '') | |
Set the login URL of the CAS server. | |
phpCAS::setServerServiceValidateURL ($url= '') | |
Set the serviceValidate URL of the CAS server. | |
phpCAS::setServerProxyValidateURL ($url= '') | |
Set the proxyValidate URL of the CAS server. | |
phpCAS::setServerSamlValidateURL ($url= '') | |
Set the samlValidate URL of the CAS server. | |
phpCAS::getServerLogoutURL () | |
This method returns the URL to be used to login. | |
phpCAS::setServerLogoutURL ($url= '') | |
Set the logout URL of the CAS server. | |
phpCAS::logout ($params="") | |
This method is used to logout from CAS. | |
phpCAS::logoutWithRedirectService ($service) | |
This method is used to logout from CAS. | |
phpCAS::logoutWithUrl ($url) | |
This method is used to logout from CAS. | |
phpCAS::logoutWithRedirectServiceAndUrl ($service, $url) | |
This method is used to logout from CAS. | |
phpCAS::setFixedCallbackURL ($url= '') | |
Set the fixed URL that will be used by the CAS server to transmit the PGT. | |
phpCAS::setFixedServiceURL ($url) | |
Set the fixed URL that will be set as the CAS service parameter. | |
phpCAS::getServiceURL () | |
Get the URL that is set as the CAS service parameter. | |
phpCAS::retrievePT ($target_service, &$err_code, &$err_msg) | |
Retrieve a Proxy Ticket from the CAS server. | |
phpCAS::setCasServerCert ($cert) | |
Set the certificate of the CAS server. | |
phpCAS::setCasServerCACert ($cert) | |
Set the certificate of the CAS server CA. | |
phpCAS::setNoCasServerValidation () | |
Set no SSL validation for the CAS server. |
phpCAS::authenticate | ( | ) |
This method has been left from version 0.4.1 for compatibility reasons.
Definition at line 1020 of file CAS.php.
References phpCAS\error().
phpCAS::checkAuthentication | ( | ) |
This method is called to check if the user is authenticated (use the gateway feature).
Definition at line 933 of file CAS.php.
References $auth, $PHPCAS_AUTH_CHECK_CALL, $PHPCAS_CLIENT, phpCAS\backtrace(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by ilSoapAuthenticationCAS\authenticate().
phpCAS::forceAuthentication | ( | ) |
This method is called to force authentication if the user was not already authenticated.
If the user is not authenticated, halt by redirecting to the CAS server.
Definition at line 961 of file CAS.php.
References $auth, $PHPCAS_AUTH_CHECK_CALL, $PHPCAS_CLIENT, phpCAS\backtrace(), phpCAS\error(), phpCAS\getUser(), phpCAS\trace(), and phpCAS\traceBegin().
Referenced by ilCASAuth\forceCASAuth().
phpCAS::getAttributes | ( | ) |
This method returns the CAS user's login name.
Definition at line 1096 of file CAS.php.
References $PHPCAS_AUTH_CHECK_CALL, $PHPCAS_CLIENT, and phpCAS\error().
phpCAS::getServerLoginURL | ( | ) |
This method returns the URL to be used to login.
Definition at line 1126 of file CAS.php.
References $PHPCAS_CLIENT, and phpCAS\error().
phpCAS::getServerLogoutURL | ( | ) |
This method returns the URL to be used to login.
Definition at line 1222 of file CAS.php.
References $PHPCAS_CLIENT, and phpCAS\error().
phpCAS::getServiceURL | ( | ) |
Get the URL that is set as the CAS service parameter.
Definition at line 1390 of file CAS.php.
References $PHPCAS_CLIENT, and phpCAS\error().
phpCAS::getUser | ( | ) |
This method returns the CAS user's login name.
Definition at line 1075 of file CAS.php.
References $PHPCAS_AUTH_CHECK_CALL, $PHPCAS_CLIENT, and phpCAS\error().
Referenced by phpCAS\forceAuthentication(), ilCASAuth\getCASUser(), and ilCASAuth\login().
phpCAS::handleLogoutRequests | ( | $check_client = true , |
|
$allowed_clients = false |
|||
) |
Handle logout requests.
Definition at line 1112 of file CAS.php.
References $PHPCAS_CLIENT, and phpCAS\error().
phpCAS::isAuthenticated | ( | ) |
This method is called to check if the user is authenticated (previously or by tickets given in the URL).
Definition at line 1030 of file CAS.php.
References $auth, $PHPCAS_AUTH_CHECK_CALL, $PHPCAS_CLIENT, phpCAS\backtrace(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::isSessionAuthenticated | ( | ) |
Checks whether authenticated based on $_SESSION.
Useful to avoid server calls.
Definition at line 1060 of file CAS.php.
References $PHPCAS_CLIENT, and phpCAS\error().
phpCAS::logout | ( | $params = "" | ) |
This method is used to logout from CAS.
$params an array that contains the optional url and service parameters that will be passed to the CAS server
Definition at line 1255 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::logoutWithRedirectService | ( | $service | ) |
This method is used to logout from CAS.
Halts by redirecting to the CAS server.
$service | a URL that will be transmitted to the CAS server |
Definition at line 1285 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::logoutWithRedirectServiceAndUrl | ( | $service, | |
$url | |||
) |
This method is used to logout from CAS.
Halts by redirecting to the CAS server.
$service | a URL that will be transmitted to the CAS server |
$url | a URL that will be transmitted to the CAS server |
Definition at line 1326 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::logoutWithUrl | ( | $url | ) |
This method is used to logout from CAS.
Halts by redirecting to the CAS server.
$url | a URL that will be transmitted to the CAS server |
Definition at line 1305 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::renewAuthentication | ( | ) |
This method is called to renew the authentication.
Definition at line 995 of file CAS.php.
phpCAS::retrievePT | ( | $target_service, | |
& | $err_code, | ||
& | $err_msg | ||
) |
Retrieve a Proxy Ticket from the CAS server.
Definition at line 1401 of file CAS.php.
References $PHPCAS_CLIENT, and phpCAS\error().
phpCAS::setCacheTimesForAuthRecheck | ( | $n | ) |
Set the times authentication will be cached before really accessing the CAS server in gateway mode:
$n | an integer. |
Definition at line 918 of file CAS.php.
References $n, $PHPCAS_CLIENT, and phpCAS\error().
phpCAS::setCasServerCACert | ( | $cert | ) |
Set the certificate of the CAS server CA.
$cert | the CA certificate |
Definition at line 1435 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::setCasServerCert | ( | $cert | ) |
Set the certificate of the CAS server.
$cert | the PEM certificate |
Definition at line 1417 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::setFixedCallbackURL | ( | $url = '' | ) |
Set the fixed URL that will be used by the CAS server to transmit the PGT.
When this method is not called, a phpCAS script uses its own URL for the callback.
$url | the URL |
Definition at line 1352 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::setFixedServiceURL | ( | $url | ) |
Set the fixed URL that will be set as the CAS service parameter.
When this method is not called, a phpCAS script uses its own URL.
$url | the URL |
Definition at line 1374 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by ilSoapAuthenticationCAS\__buildAuth().
phpCAS::setNoCasServerValidation | ( | ) |
Set no SSL validation for the CAS server.
Definition at line 1451 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by ilAuthContainerCAS\initCAS().
phpCAS::setServerLoginURL | ( | $url = '' | ) |
Set the login URL of the CAS server.
$url | the login URL |
Definition at line 1139 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::setServerLogoutURL | ( | $url = '' | ) |
Set the logout URL of the CAS server.
$url | the logout URL |
Definition at line 1235 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::setServerProxyValidateURL | ( | $url = '' | ) |
Set the proxyValidate URL of the CAS server.
Used for all CAS 2.0 validations
$url | the proxyValidate URL |
Definition at line 1181 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::setServerSamlValidateURL | ( | $url = '' | ) |
Set the samlValidate URL of the CAS server.
$url | the samlValidate URL |
Definition at line 1201 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
phpCAS::setServerServiceValidateURL | ( | $url = '' | ) |
Set the serviceValidate URL of the CAS server.
Used only in CAS 1.0 validations
$url | the serviceValidate URL |
Definition at line 1160 of file CAS.php.
References $PHPCAS_CLIENT, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().