コード例 #1
0
 /**
  * Verify if a message has an issuer that is known to us. If not, it
  * throws a Corto_Module_Bindings_VerificationException.
  * @param array $message
  * @throws Corto_Module_Bindings_VerificationException
  */
 protected function _verifyKnownIssuer(array $message)
 {
     $messageIssuer = $message['saml:Issuer']['__v'];
     $destination = "";
     if (isset($message['_Destination'])) {
         $destination = $message['_Destination'];
     }
     try {
         $remoteEntity = $this->_server->getRemoteEntity($messageIssuer);
     } catch (Corto_ProxyServer_Exception $e) {
         throw new EngineBlock_Corto_Exception_UnknownIssuer("Issuer '{$messageIssuer}' is not a known remote entity? (please add SP/IdP to Remote Entities)", $messageIssuer, $destination);
     }
     return $remoteEntity;
 }
コード例 #2
0
 protected function _processProxyServerResponseBody(EngineBlock_Http_Response $response)
 {
     $proxyOutput = $this->_proxyServer->getOutput();
     $response->setBody($proxyOutput);
 }