public function processConsentAction()
 {
     $this->setNoRender();
     $application = EngineBlock_ApplicationSingleton::getInstance();
     $proxyServer = new EngineBlock_Corto_Adapter();
     try {
         $proxyServer->processConsent();
     } catch (Corto_Module_Services_SessionLostException $e) {
         $application->getLogInstance()->warn('Session lost error');
         $application->getHttpResponse()->setRedirectUrl('/authentication/feedback/session-lost');
     } catch (EngineBlock_Corto_Exception_UserNotMember $e) {
         $application->getLogInstance()->warn('User not a member error');
         $application->getHttpResponse()->setRedirectUrl('/authentication/feedback/vomembershiprequired');
     }
 }
 public function processConsentAction()
 {
     $this->setNoRender();
     $application = EngineBlock_ApplicationSingleton::getInstance();
     $proxyServer = new EngineBlock_Corto_Adapter();
     try {
         $proxyServer->processConsent();
     } catch (EngineBlock_Corto_Module_Services_SessionLostException $e) {
         $application->handleExceptionWithFeedback($e, '/authentication/feedback/session-lost');
     } catch (EngineBlock_Corto_Exception_UserNotMember $e) {
         $application->handleExceptionWithFeedback($e, '/authentication/feedback/vomembershiprequired');
     } catch (EngineBlock_Corto_Exception_PEPNoAccess $e) {
         $application->getLogInstance()->notice("PEP authorization rule violation", array('exception' => $e));
         $application->handleExceptionWithFeedback($e, '/authentication/feedback/authorization-policy-violation', array("error_authorization_policy_violation_name" => $e->getMessage()));
     } catch (EngineBlock_Attributes_Manipulator_CustomException $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()));
     }
 }
 public function processConsentAction()
 {
     $this->setNoRender();
     $application = EngineBlock_ApplicationSingleton::getInstance();
     try {
         $proxyServer = new EngineBlock_Corto_Adapter();
         $proxyServer->processConsent();
     } catch (EngineBlock_Corto_Module_Bindings_UnableToReceiveMessageException $e) {
         $application->handleExceptionWithFeedback($e, '/authentication/feedback/unable-to-receive-message');
     } catch (EngineBlock_Corto_Exception_UserNotMember $e) {
         $application->handleExceptionWithFeedback($e, '/authentication/feedback/vomembershiprequired');
     } 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()));
     } catch (EngineBlock_Attributes_Manipulator_CustomException $e) {
         $_SESSION['feedback_custom'] = $e->getFeedback();
         $application->handleExceptionWithFeedback($e, '/authentication/feedback/custom');
     } catch (EngineBlock_Corto_Exception_NoConsentProvided $e) {
         $application->handleExceptionWithFeedback($e, '/authentication/feedback/no-consent');
     }
 }