public function Connections($UserReference = '', $Username = '') {
      $this->Permission('Garden.SignIn.Allow');
      $this->GetUserInfo($UserReference, $Username, '', TRUE);
      $UserID = GetValueR('User.UserID', $this);
      $this->_SetBreadcrumbs(T('Social'), UserUrl($this->User, '', 'connections'));
      
      $PModel = new Gdn_AuthenticationProviderModel();
      $Providers = $PModel->GetProviders();
      
      $this->SetData('_Providers', $Providers);
      $this->SetData('Connections', array());
      $this->EventArguments['User'] = $this->User;
      $this->FireEvent('GetConnections');
      
      // Add some connection information.
      foreach ($this->Data['Connections'] as &$Row) {
         $Provider = GetValue($Row['ProviderKey'], $Providers, array());
         
         TouchValue('Connected', $Row, !is_null(GetValue('UniqueID', $Provider, NULL)));
      }
      
      $this->CanonicalUrl(UserUrl($this->User, '', 'connections'));
      $this->Title(T('Social'));
      require_once $this->FetchViewLocation('connection_functions');
      $this->Render();
   }