コード例 #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
 /**
  * Gets workflow state for given entity id
  *
  * @param string $entityId
  * @return string $workflowState
  */
 protected function _getEntityWorkFlowState($entityId)
 {
     $entityData = $this->_proxyServer->getRemoteEntity($entityId);
     $workflowState = $entityData['WorkflowState'];
     return $workflowState;
 }