ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($domain) | |
Initialize a CDC server. More... | |
sendRequest (array $request) | |
Send a request to this CDC server. More... | |
getResponse () | |
Parse and validate response received from a CDC server. More... | |
Static Public Member Functions | |
static | processRequest () |
Parse and process a CDC request. More... | |
Private Member Functions | |
handleRequest (array $request) | |
Handle a parsed CDC requst. More... | |
handleAppend (array $request) | |
Handle an append request. More... | |
handleDelete (array $request) | |
Handle a delete request. More... | |
handleRead (array $request) | |
Handle a read request. More... | |
validate ($parameter) | |
Helper function for validating the signature on a CDC message. More... | |
send ($to, $parameter, array $message) | |
Helper function for sending CDC messages. More... | |
calcSignature ($rawMessage) | |
Calculate the signature on the given message. More... | |
getCDC () | |
Get the IdP entities saved in the common domain cookie. More... | |
setCDC (array $list) | |
Build a CDC cookie string. More... | |
Static Private Member Functions | |
static | get ($parameter) |
Helper function for parsing and validating a CDC message. More... | |
Private Attributes | |
$domain | |
$server | |
$key | |
$cookieLifetime | |
The lifetime of our cookie, in seconds. More... | |
Definition at line 8 of file Server.php.
sspmod_cdc_Server::__construct | ( | $domain | ) |
Initialize a CDC server.
string | $domain | The domain we are a server for. |
Definition at line 49 of file Server.php.
References $config, $domain, and SimpleSAML_Configuration\getConfig().
|
private |
Calculate the signature on the given message.
string | $rawMessage | The base64-encoded message. |
Definition at line 348 of file Server.php.
Referenced by send(), and validate().
|
staticprivate |
Helper function for parsing and validating a CDC message.
string | $parameter | The name of the query parameter. |
Definition at line 245 of file Server.php.
References $message, and $timestamp.
|
private |
Get the IdP entities saved in the common domain cookie.
Definition at line 361 of file Server.php.
References $_COOKIE, $idp, $ret, and SimpleSAML\Logger\warning().
Referenced by handleAppend(), and handleRead().
sspmod_cdc_Server::getResponse | ( | ) |
Parse and validate response received from a CDC server.
Definition at line 91 of file Server.php.
References $response, ILIAS\GlobalScreen\get(), and validate().
|
private |
Handle an append request.
array | $request | The request. |
Definition at line 181 of file Server.php.
References $list, getCDC(), and setCDC().
Referenced by handleRequest().
|
private |
Handle a delete request.
array | $request | The request. |
Definition at line 208 of file Server.php.
References PHPMailer\PHPMailer\$params, and SimpleSAML\Utils\HTTP\setCookie().
Referenced by handleRequest().
|
private |
Handle a read request.
array | $request | The request. |
Definition at line 228 of file Server.php.
References $list, and getCDC().
Referenced by handleRequest().
|
private |
Handle a parsed CDC requst.
array | $request |
Definition at line 131 of file Server.php.
References $domain, $response, handleAppend(), handleDelete(), handleRead(), SimpleSAML\Logger\info(), and send().
|
static |
Parse and process a CDC request.
Definition at line 111 of file Server.php.
References $domain, $request, $server, and ILIAS\GlobalScreen\get().
|
private |
Helper function for sending CDC messages.
string | $to | The URL the message should be delivered to. |
string | $parameter | The query parameter the message should be sent in. |
array | $message | The CDC message. |
Definition at line 317 of file Server.php.
References PHPMailer\PHPMailer\$params, $url, calcSignature(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML\Utils\HTTP\submitPOSTData().
Referenced by handleRequest(), and sendRequest().
sspmod_cdc_Server::sendRequest | ( | array | $request | ) |
Send a request to this CDC server.
array | $request | The CDC request. |
Definition at line 76 of file Server.php.
References $domain, and send().
|
private |
Build a CDC cookie string.
array | $list | The list of IdPs. |
Definition at line 388 of file Server.php.
References PHPMailer\PHPMailer\$params, and SimpleSAML\Utils\HTTP\setCookie().
Referenced by handleAppend().
|
private |
Helper function for validating the signature on a CDC message.
Will throw an exception if the message is invalid.
string | $parameter | The name of the query parameter. |
Definition at line 291 of file Server.php.
References $message, and calcSignature().
Referenced by getResponse().
|
private |
The lifetime of our cookie, in seconds.
If this is 0, the cookie will expire when the browser is closed.
int |
Definition at line 41 of file Server.php.
|
private |
Definition at line 15 of file Server.php.
Referenced by __construct(), handleRequest(), processRequest(), and sendRequest().
|
private |
Definition at line 31 of file Server.php.
|
private |
Definition at line 23 of file Server.php.
Referenced by processRequest().