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)); } }
public function metadataAction($argument = null) { $this->setNoRender(); $proxyServer = new EngineBlock_Corto_Adapter(); if (substr($argument, 0, 3) == "vo:") { $proxyServer->setVirtualOrganisationContext(substr($argument, 3)); } $proxyServer->idPMetadata(); }
public function metadataAction() { $this->setNoRender(); $application = EngineBlock_ApplicationSingleton::getInstance(); $proxyServer = new EngineBlock_Corto_Adapter(); 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}'."); } } } try { $proxyServer->idPMetadata(); } catch (EngineBlock_Corto_ProxyServer_UnknownRemoteEntityException $e) { $application->handleExceptionWithFeedback($e, '/authentication/feedback/unknown-service-provider?entity-id=' . urlencode($e->getEntityId())); } }
public function certificateAction() { $this->setNoRender(); $proxyServer = new EngineBlock_Corto_Adapter(); 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 { EngineBlock_ApplicationSingleton::getInstance()->getLogInstance()->notice("Ignoring unknown argument '{$argument}'."); } } } $proxyServer->idpCertificate(); }