Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /**
  * 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);
 }
Beispiel #3
0
<?php

sspmod_cdc_Server::processRequest();