ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Functions | |
static | phpCAS::setCacheTimesForAuthRecheck ($n) |
Set the times authentication will be cached before really accessing the CAS server in gateway mode: More... | |
static | phpCAS::setCasAttributeParserCallback ($function, array $additionalArgs=array()) |
Set a callback function to be run when receiving CAS attributes. More... | |
static | phpCAS::setPostAuthenticateCallback ($function, array $additionalArgs=array()) |
Set a callback function to be run when a user authenticates. More... | |
static | phpCAS::setSingleSignoutCallback ($function, array $additionalArgs=array()) |
Set a callback function to be run when a single-signout request is received. More... | |
static | phpCAS::checkAuthentication () |
This method is called to check if the user is already authenticated locally or has a global cas session. More... | |
static | phpCAS::forceAuthentication () |
This method is called to force authentication if the user was not already authenticated. More... | |
static | phpCAS::renewAuthentication () |
This method is called to renew the authentication. More... | |
static | phpCAS::isAuthenticated () |
This method is called to check if the user is authenticated (previously or by tickets given in the URL). More... | |
static | phpCAS::isSessionAuthenticated () |
Checks whether authenticated based on $_SESSION. More... | |
static | phpCAS::getUser () |
This method returns the CAS user's login name. More... | |
static | phpCAS::getAttributes () |
Answer attributes about the authenticated user. More... | |
static | phpCAS::hasAttributes () |
Answer true if there are attributes for the authenticated user. More... | |
static | phpCAS::hasAttribute ($key) |
Answer true if an attribute exists for the authenticated user. More... | |
static | phpCAS::getAttribute ($key) |
Answer an attribute for the authenticated user. More... | |
static | phpCAS::handleLogoutRequests ($check_client=true, $allowed_clients=false) |
Handle logout requests. More... | |
static | phpCAS::getServerLoginURL () |
This method returns the URL to be used to login. More... | |
static | phpCAS::setServerLoginURL ($url='') |
Set the login URL of the CAS server. More... | |
static | phpCAS::setServerServiceValidateURL ($url='') |
Set the serviceValidate URL of the CAS server. More... | |
static | phpCAS::setServerProxyValidateURL ($url='') |
Set the proxyValidate URL of the CAS server. More... | |
static | phpCAS::setServerSamlValidateURL ($url='') |
Set the samlValidate URL of the CAS server. More... | |
static | phpCAS::getServerLogoutURL () |
This method returns the URL to be used to login. More... | |
static | phpCAS::setServerLogoutURL ($url='') |
Set the logout URL of the CAS server. More... | |
static | phpCAS::logout ($params="") |
This method is used to logout from CAS. More... | |
static | phpCAS::logoutWithRedirectService ($service) |
This method is used to logout from CAS. More... | |
static | phpCAS::logoutWithUrl ($url) |
This method is used to logout from CAS. More... | |
static | phpCAS::logoutWithRedirectServiceAndUrl ($service, $url) |
This method is used to logout from CAS. More... | |
static | phpCAS::setFixedCallbackURL ($url='') |
Set the fixed URL that will be used by the CAS server to transmit the PGT. More... | |
static | phpCAS::setFixedServiceURL ($url) |
Set the fixed URL that will be set as the CAS service parameter. More... | |
static | phpCAS::getServiceURL () |
Get the URL that is set as the CAS service parameter. More... | |
static | phpCAS::retrievePT ($target_service, &$err_code, &$err_msg) |
Retrieve a Proxy Ticket from the CAS server. More... | |
static | phpCAS::setCasServerCACert ($cert, $validate_cn=true) |
Set the certificate of the CAS server CA and if the CN should be properly verified. More... | |
static | phpCAS::setNoCasServerValidation () |
Set no SSL validation for the CAS server. More... | |
static | phpCAS::setNoClearTicketsFromUrl () |
Disable the removal of a CAS-Ticket from the URL when authenticating DISABLING POSES A SECURITY RISK: We normally remove the ticket by an additional redirect as a security precaution to prevent a ticket in the HTTP_REFERRER or be carried over in the URL parameter. More... | |
|
static |
This method is called to check if the user is already authenticated locally or has a global cas session.
A already existing cas session is determined by a cas gateway call.(cas login call without any interactive prompt)
Definition at line 1097 of file CAS.php.
References $auth, phpCAS\_validateClientExists(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by ilSoapAuthenticationCAS\authenticate().
|
static |
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 1118 of file CAS.php.
References $auth, phpCAS\_validateClientExists(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by ilAuthProviderCAS\doAuthentication(), and ilCASAuth\forceCASAuth().
|
static |
Answer an attribute for the authenticated user.
string | $key | attribute name |
Definition at line 1277 of file CAS.php.
References $key, phpCAS\_validateClientExists(), and phpCAS\error().
|
static |
Answer attributes about the authenticated user.
Definition at line 1218 of file CAS.php.
References phpCAS\_validateClientExists(), and phpCAS\error().
|
static |
This method returns the URL to be used to login.
Definition at line 1309 of file CAS.php.
References phpCAS\_validateClientExists().
|
static |
This method returns the URL to be used to login.
Definition at line 1417 of file CAS.php.
References phpCAS\_validateClientExists().
|
static |
Get the URL that is set as the CAS service parameter.
Definition at line 1609 of file CAS.php.
References phpCAS\_validateProxyExists().
|
static |
This method returns the CAS user's login name.
Definition at line 1199 of file CAS.php.
References phpCAS\_validateClientExists(), and phpCAS\error().
Referenced by ilAuthProviderCAS\doAuthentication(), ilCASAuth\getCASUser(), and ilCASAuth\login().
|
static |
Handle logout requests.
bool | $check_client | additional safety check |
array | $allowed_clients | array of allowed clients |
Definition at line 1296 of file CAS.php.
References phpCAS\_validateClientExists().
|
static |
Answer true if an attribute exists for the authenticated user.
string | $key | attribute name |
Definition at line 1257 of file CAS.php.
References $key, phpCAS\_validateClientExists(), and phpCAS\error().
|
static |
Answer true if there are attributes for the authenticated user.
Definition at line 1237 of file CAS.php.
References phpCAS\_validateClientExists(), and phpCAS\error().
|
static |
This method is called to check if the user is authenticated (previously or by tickets given in the URL).
Definition at line 1163 of file CAS.php.
References $auth, phpCAS\_validateClientExists(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Checks whether authenticated based on $_SESSION.
Useful to avoid server calls.
Definition at line 1185 of file CAS.php.
References phpCAS\_validateClientExists().
|
static |
This method is used to logout from CAS.
string | $params | an array that contains the optional url and service parameters that will be passed to the CAS server |
Definition at line 1454 of file CAS.php.
References $key, PHPMailer\PHPMailer\$params, phpCAS\_validateClientExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
This method is used to logout from CAS.
Halts by redirecting to the CAS server.
string | $service | a URL that will be transmitted to the CAS server |
Definition at line 1487 of file CAS.php.
References phpCAS\_validateClientExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
This method is used to logout from CAS.
Halts by redirecting to the CAS server.
string | $service | a URL that will be transmitted to the CAS server |
string | $url | a URL that will be transmitted to the CAS server |
Definition at line 1537 of file CAS.php.
References $url, phpCAS\_validateClientExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
This method is used to logout from CAS.
Halts by redirecting to the CAS server.
string | $url | a URL that will be transmitted to the CAS server |
Definition at line 1510 of file CAS.php.
References $url, phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
This method is called to renew the authentication.
Definition at line 1143 of file CAS.php.
References $auth, phpCAS\_validateClientExists(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Retrieve a Proxy Ticket from the CAS server.
string | $target_service | Url string of service to proxy |
string | &$err_code | error code |
string | &$err_msg | error message |
Definition at line 1624 of file CAS.php.
References phpCAS\_validateProxyExists(), and phpCAS\error().
|
static |
Set the times authentication will be cached before really accessing the CAS server in gateway mode:
int | $n | an integer. |
Definition at line 1010 of file CAS.php.
References $n, phpCAS\_validateClientExists(), and phpCAS\error().
|
static |
Set a callback function to be run when receiving CAS attributes.
The callback function will be passed an $success_elements payload of the response () as its first parameter.
string | $function | Callback function |
array | $additionalArgs | optional array of arguments |
Definition at line 1033 of file CAS.php.
References phpCAS\_validateClientExists().
|
static |
Set the certificate of the CAS server CA and if the CN should be properly verified.
string | $cert | CA certificate file name |
bool | $validate_cn | Validate CN in certificate (default true) |
Definition at line 1644 of file CAS.php.
References phpCAS\_validateClientExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
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.
string | $url | the URL |
Definition at line 1568 of file CAS.php.
References $url, phpCAS\_validateProxyExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
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.
string | $url | the URL |
Definition at line 1590 of file CAS.php.
References $url, phpCAS\_validateProxyExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by ilSoapAuthenticationCAS\__buildAuth().
|
static |
Set no SSL validation for the CAS server.
Definition at line 1663 of file CAS.php.
References phpCAS\_validateClientExists(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
Referenced by ilAuthProviderCAS\doAuthentication(), and ilAuthContainerCAS\initCAS().
|
static |
Disable the removal of a CAS-Ticket from the URL when authenticating DISABLING POSES A SECURITY RISK: We normally remove the ticket by an additional redirect as a security precaution to prevent a ticket in the HTTP_REFERRER or be carried over in the URL parameter.
Definition at line 1683 of file CAS.php.
References phpCAS\_validateClientExists(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Set a callback function to be run when a user authenticates.
The callback function will be passed a $logoutTicket as its first parameter, followed by any $additionalArgs you pass. The $logoutTicket parameter is an opaque string that can be used to map the session-id to logout request in order to support single-signout in applications that manage their own sessions (rather than letting phpCAS start the session).
phpCAS::forceAuthentication() will always exit and forward client unless they are already authenticated. To perform an action at the moment the user logs in (such as registering an account, performing logging, etc), register a callback function here.
string | $function | Callback function |
array | $additionalArgs | optional array of arguments |
Definition at line 1059 of file CAS.php.
References phpCAS\_validateClientExists().
|
static |
Set the login URL of the CAS server.
string | $url | the login URL |
Definition at line 1324 of file CAS.php.
References $url, phpCAS\_validateClientExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Set the logout URL of the CAS server.
string | $url | the logout URL |
Definition at line 1432 of file CAS.php.
References $url, phpCAS\_validateClientExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Set the proxyValidate URL of the CAS server.
Used for all CAS versions of proxy URL validations Examples: CAS 1.0 http://www.exemple.com/ CAS 2.0 http://www.exemple.com/proxyValidate CAS 3.0 http://www.exemple.com/p3/proxyValidate
string | $url | the proxyValidate URL |
Definition at line 1376 of file CAS.php.
References $url, phpCAS\_validateClientExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Set the samlValidate URL of the CAS server.
string | $url | the samlValidate URL |
Definition at line 1397 of file CAS.php.
References $url, phpCAS\_validateClientExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Set the serviceValidate URL of the CAS server.
Used for all CAS versions of URL validations. Examples: CAS 1.0 http://www.exemple.com/validate CAS 2.0 http://www.exemple.com/validateURL CAS 3.0 http://www.exemple.com/p3/serviceValidate
string | $url | the serviceValidate URL |
Definition at line 1350 of file CAS.php.
References $url, phpCAS\_validateClientExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Set a callback function to be run when a single-signout request is received.
The callback function will be passed a $logoutTicket as its first parameter, followed by any $additionalArgs you pass. The $logoutTicket parameter is an opaque string that can be used to map a session-id to the logout request in order to support single-signout in applications that manage their own sessions (rather than letting phpCAS start and destroy the session).
string | $function | Callback function |
array | $additionalArgs | optional array of arguments |
Definition at line 1080 of file CAS.php.
References phpCAS\_validateClientExists().