コード例 #1
0
 /**
  * 
  *
  * @param string $encodedIdPEntityId
  * @return void
  */
 public function idPsMetaDataAction()
 {
     $this->setNoRender();
     // @todo Give the metaData for all known IdPs, where the SSO locations all go through EB
     $proxyServer = new EngineBlock_Corto_Adapter();
     $proxyServer->idPsMetadata(EngineBlock_ApplicationSingleton::getInstance()->getHttpRequest()->getQueryString());
 }
コード例 #2
0
 public function idPsMetaDataAction()
 {
     $this->setNoRender();
     $application = EngineBlock_ApplicationSingleton::getInstance();
     $proxyServer = new EngineBlock_Corto_Adapter();
     try {
         foreach (func_get_args() as $argument) {
             if (substr($argument, 0, 3) === 'vo:') {
                 $proxyServer->setVirtualOrganisationContext(substr($argument, 3));
             } else {
                 if (substr($argument, 0, 4) === 'key:') {
                     $proxyServer->setKeyId(substr($argument, 4));
                 } else {
                     $application->getLogInstance()->notice("Ignoring unknown argument '{$argument}'.");
                 }
             }
         }
         $proxyServer->idPsMetadata();
     } catch (EngineBlock_Corto_ProxyServer_UnknownRemoteEntityException $e) {
         $application->getLogInstance()->notice("Unknown remote entity: " . $e->getEntityId(), array('exception' => $e));
         $application->handleExceptionWithFeedback($e, '/authentication/feedback/unknown-service-provider?entity-id=' . urlencode($e->getEntityId()));
     } catch (Janus_Client_CacheProxy_Exception $e) {
         $application->getLogInstance()->notice("Unknown Service Provider?", array('exception' => $e));
         $spEntityId = $application->getHttpRequest()->getQueryParameter('sp-entity-id');
         $application->handleExceptionWithFeedback($e, '/authentication/feedback/unknown-service-provider?entity-id=' . urlencode($spEntityId));
     }
 }