public function processedAssertionAction() { $this->setNoRender(); $application = EngineBlock_ApplicationSingleton::getInstance(); try { $proxyServer = new EngineBlock_Corto_Adapter(); $proxyServer->processedAssertionConsumer(); } catch (EngineBlock_Corto_Exception_UserNotMember $e) { $application->getLogInstance()->warn('User not a member error'); $application->getHttpResponse()->setRedirectUrl('/authentication/feedback/vomembershiprequired'); } }
public function processedAssertionAction() { $this->setNoRender(); $application = EngineBlock_ApplicationSingleton::getInstance(); try { $proxyServer = new EngineBlock_Corto_Adapter(); $proxyServer->processedAssertionConsumer(); } catch (EngineBlock_Corto_Exception_UserNotMember $e) { $application->getLogInstance()->notice("VO membership required", array('exception' => $e)); $application->handleExceptionWithFeedback($e, '/authentication/feedback/vomembershiprequired'); } catch (EngineBlock_Attributes_Manipulator_CustomException $e) { $application->getLogInstance()->notice("Custom attribute manipulator exception", array('exception' => $e)); $_SESSION['feedback_custom'] = $e->getFeedback(); $application->handleExceptionWithFeedback($e, '/authentication/feedback/custom'); } }
public function processConsentAction() { $this->setNoRender(); $application = EngineBlock_ApplicationSingleton::getInstance(); try { $proxyServer = new EngineBlock_Corto_Adapter(); $proxyServer->processConsent(); } catch (Corto_Module_Bindings_UnableToReceiveMessageException $e) { $application->getLogInstance()->warn('Unable to receive message'); $application->getHttpResponse()->setRedirectUrl('/authentication/feedback/unable-to-receive-message'); } catch (EngineBlock_Corto_Exception_UserNotMember $e) { $application->getLogInstance()->warn('User not a member error'); $application->getHttpResponse()->setRedirectUrl('/authentication/feedback/vomembershiprequired'); } catch (Corto_Module_Services_SessionLostException $e) { $application->getLogInstance()->warn('Session was lost'); $application->getHttpResponse()->setRedirectUrl('/authentication/feedback/session-lost'); } catch (EngineBlock_Corto_Exception_UnknownIssuer $e) { $additionalInfo = new EngineBlock_Log_Message_AdditionalInfo(null, $e->getDestination(), $e->getEntityId(), $e->getTraceAsString()); $application->getLogInstance()->err($e->getMessage(), $additionalInfo); $application->getHttpResponse()->setRedirectUrl('/authentication/feedback/unknown-issuer?entity-id=' . urlencode($e->getEntityId()) . '&destination=' . urlencode($e->getDestination())); } }
/** * The metadata for EngineBlock as a Service Provider * * @return void */ public function metadataAction() { $this->setNoRender(); $proxyServer = new EngineBlock_Corto_Adapter(); $proxyServer->sPMetadata(); }
public function debugAction() { $this->setNoRender(); $application = EngineBlock_ApplicationSingleton::getInstance(); try { $proxyServer = new EngineBlock_Corto_Adapter(); $proxyServer->debugSingleSignOn(); } catch (EngineBlock_Corto_Module_Services_SessionLostException $e) { $application->handleExceptionWithFeedback($e, '/authentication/feedback/session-lost'); } catch (EngineBlock_Corto_Exception_UnknownIssuer $e) { $application->handleExceptionWithFeedback($e, '/authentication/feedback/unknown-issuer?entity-id=' . urlencode($e->getEntityId()) . '&destination=' . urlencode($e->getDestination())); } }
public function certificateAction() { $this->setNoRender(); $proxyServer = new EngineBlock_Corto_Adapter(); foreach (func_get_args() as $argument) { if (substr($argument, 0, 4) === 'key:') { $proxyServer->setKeyId(substr($argument, 4)); } else { EngineBlock_ApplicationSingleton::getInstance()->getLogInstance()->notice("Ignoring unknown argument '{$argument}'."); } } $proxyServer->idpCertificate(); }