ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Functions | |
CAS_Client::getProxiedService ($type) | |
Answer a proxy-authenticated service handler. More... | |
CAS_Client::initializeProxiedService (CAS_ProxiedService $proxiedService) | |
Initialize a proxied-service handler with the proxy-ticket it should use. More... | |
CAS_Client::serviceWeb ($url, &$err_code, &$output) | |
This method is used to access an HTTP[S] service. More... | |
CAS_Client::serviceMail ($url, $serviceUrl, $flags, &$err_code, &$err_msg, &$pt) | |
This method is used to access an IMAP/POP3/NNTP service. More... | |
CAS_Client::getProxiedService | ( | $type | ) |
Answer a proxy-authenticated service handler.
string | $type | The service type. One of: PHPCAS_PROXIED_SERVICE_HTTP_GET, PHPCAS_PROXIED_SERVICE_HTTP_POST, PHPCAS_PROXIED_SERVICE_IMAP |
InvalidArgumentException | If the service type is unknown. |
Definition at line 2882 of file Client.php.
References CAS_Client\$_requestImplementation, $type, CAS_Client\_getUser(), CAS_Client\ensureAuthenticationCallSuccessful(), CAS_Client\ensureIsProxy(), PHPCAS_PROXIED_SERVICE_HTTP_GET, PHPCAS_PROXIED_SERVICE_HTTP_POST, and PHPCAS_PROXIED_SERVICE_IMAP.
Referenced by CAS_Client\serviceMail(), and CAS_Client\serviceWeb().
CAS_Client::initializeProxiedService | ( | CAS_ProxiedService | $proxiedService | ) |
Initialize a proxied-service handler with the proxy-ticket it should use.
CAS_ProxiedService | $proxiedService | service handler |
CAS_ProxyTicketException | If there is a proxy-ticket failure. The code of the Exception will be one of: PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE PHPCAS_SERVICE_PT_FAILURE |
CAS_ProxiedService_Exception | If there is a failure getting the url from the proxied service. |
Definition at line 2933 of file Client.php.
References $url, CAS_Client\ensureAuthenticationCallSuccessful(), CAS_Client\ensureIsProxy(), CAS_ProxiedService\getServiceUrl(), CAS_Client\retrievePT(), and CAS_ProxiedService\setProxyTicket().
CAS_Client::serviceMail | ( | $url, | |
$serviceUrl, | |||
$flags, | |||
& | $err_code, | ||
& | $err_msg, | ||
& | $pt | ||
) |
This method is used to access an IMAP/POP3/NNTP service.
string | $url | a string giving the URL of the service, including the mailing box for IMAP URLs, as accepted by imap_open(). |
string | $serviceUrl | a string giving for CAS retrieve Proxy ticket |
string | $flags | options given to imap_open(). |
int | &$err_code | an error code Possible values are PHPCAS_SERVICE_OK (on success), PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE, PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_NOT_AVAILABLE. |
string | &$err_msg | an error message on failure |
string | &$pt | the Proxy Ticket (PT) retrieved from the CAS server to access the URL on success, false on error). |
Definition at line 3018 of file Client.php.
References $lang, $service, GuzzleHttp\Psr7\$stream, $url, CAS_Client\ensureAuthenticationCallSuccessful(), CAS_Client\ensureIsProxy(), CAS_Client\getLangObj(), CAS_Client\getProxiedService(), PHPCAS_PROXIED_SERVICE_IMAP, PHPCAS_SERVICE_NOT_AVAILABLE, and PHPCAS_SERVICE_OK.
CAS_Client::serviceWeb | ( | $url, | |
& | $err_code, | ||
& | $output | ||
) |
This method is used to access an HTTP[S] service.
string | $url | the service to access. |
int | &$err_code | an error code Possible values are PHPCAS_SERVICE_OK (on success), PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE, PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_NOT_AVAILABLE. |
string | &$output | the output of the service (also used to give an error message on failure). |
Definition at line 2968 of file Client.php.
References $lang, $output, $service, $url, CAS_Client\ensureAuthenticationCallSuccessful(), CAS_Client\ensureIsProxy(), CAS_Client\getLangObj(), CAS_Client\getProxiedService(), PHPCAS_PROXIED_SERVICE_HTTP_GET, PHPCAS_SERVICE_NOT_AVAILABLE, and PHPCAS_SERVICE_OK.