public function indexAction()
 {
     $this->metadata = new EngineBlock_AttributeMetadata();
     $this->aggregator = EngineBlock_Group_Provider_Aggregator_MemoryCacheProxy::createFromDatabaseFor($this->attributes['nameid'][0]);
     $this->groupOauth = $this->user->getUserOauth();
     $serviceRegistryClient = new Janus_Client_CacheProxy();
     $this->spList = $serviceRegistryClient->getSpList();
     $this->consent = $this->user->getConsent();
     $this->spAttributesList = $this->_getSpAttributeList($this->spList);
     try {
         $this->spOauthList = $this->_getSpOauthList($this->spList);
     } catch (Exception $e) {
         $additionalInfo = new EngineBlock_Log_Message_AdditionalInfo($this->user->getUid(), null, null, $e->getTraceAsString());
         EngineBlock_ApplicationSingleton::getLog()->critical($e->getMessage(), $additionalInfo);
     }
 }
 protected function getServiceProviders()
 {
     $registry = new Janus_Client_CacheProxy();
     $spList = $registry->getSpList();
     // get human-readable names where possible
     $lng = $this->getLanguage();
     foreach ($spList as $id => &$record) {
         $record['id_display'] = isset($record['displayName:' . $lng]) ? $record['displayName:' . $lng] : (isset($record['name']) ? $record['name'] : (isset($record['description']) ? $record['description'] : $id));
     }
     return $spList;
 }