/** * Send a request. * * @param string $returnTo The URL we should return to afterwards. * @param string $op The operation we are performing. * @param array $params Additional parameters. */ public function sendRequest($returnTo, $op, array $params = array()) { assert('is_string($returnTo)'); assert('is_string($op)'); $params['op'] = $op; $params['return'] = $returnTo; $this->server->sendRequest($params); }
/** * Parse and process a CDC request. */ public static function processRequest() { $request = self::get('CDCRequest'); if ($request === NULL) { throw new SimpleSAML_Error_BadRequest('Missing "CDCRequest" parameter.'); } $domain = $request['domain']; $server = new sspmod_cdc_Server($domain); $server->validate('CDCRequest'); $server->handleRequest($request); }
<?php sspmod_cdc_Server::processRequest();