phpCAS
version 1.4.0
|
|
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 1125 of file CAS.php.
References $auth, phpCAS\_validateClientExists(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
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 1146 of file CAS.php.
References $auth, phpCAS\_validateClientExists(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Answer an attribute for the authenticated user.
string | $key | attribute name |
Definition at line 1305 of file CAS.php.
References phpCAS\_validateClientExists(), and phpCAS\error().
|
static |
Answer attributes about the authenticated user.
Definition at line 1246 of file CAS.php.
References phpCAS\_validateClientExists(), and phpCAS\error().
|
static |
This method returns the URL to be used to login.
Definition at line 1336 of file CAS.php.
References phpCAS\_validateClientExists().
|
static |
This method returns the URL to be used to logout.
Definition at line 1443 of file CAS.php.
References phpCAS\_validateClientExists().
|
static |
Get the URL that is set as the CAS service parameter.
Definition at line 1635 of file CAS.php.
References phpCAS\_validateProxyExists().
|
static |
This method returns the CAS user's login name.
Definition at line 1227 of file CAS.php.
References phpCAS\_validateClientExists(), and phpCAS\error().
|
static |
Handle logout requests.
bool | $check_client | additional safety check |
array | $allowed_clients | array of allowed clients |
Definition at line 1324 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 1285 of file CAS.php.
References phpCAS\_validateClientExists(), and phpCAS\error().
|
static |
Answer true if there are attributes for the authenticated user.
Definition at line 1265 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 1191 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 1213 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 1480 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 |
Definition at line 1513 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 1563 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 | $url | a URL that will be transmitted to the CAS server |
Definition at line 1536 of file CAS.php.
References phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
This method is called to renew the authentication.
Definition at line 1171 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 |
int | &$err_code | error code |
string | &$err_msg | error message |
Definition at line 1650 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 1038 of file CAS.php.
References 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 1061 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 1670 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 1594 of file CAS.php.
References 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 1616 of file CAS.php.
References phpCAS\_validateProxyExists(), phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
static |
Set no SSL validation for the CAS server.
Definition at line 1689 of file CAS.php.
References phpCAS\_validateClientExists(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
|
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 1709 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.
callable | $function | Callback function |
array | $additionalArgs | optional array of arguments |
Definition at line 1087 of file CAS.php.
References phpCAS\_validateClientExists().
|
static |
Set the login URL of the CAS server.
string | $url | the login URL |
Definition at line 1351 of file CAS.php.
References 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 1458 of file CAS.php.
References 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 1403 of file CAS.php.
References 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 1424 of file CAS.php.
References 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 1377 of file CAS.php.
References 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).
callable | $function | Callback function |
array | $additionalArgs | optional array of arguments |
Definition at line 1108 of file CAS.php.
References phpCAS\_validateClientExists().