/**
  * Set the federative attributes that have been passed through by simplesaml
  * However, filter them according to the specified filter
  *
  * @return void
  */
 protected function _getAttributes()
 {
     $attributes = $this->user->getAttributes();
     foreach ($attributes as $attributeId => $attributeValue) {
         if ($this->_isInFilter($attributeId)) {
             unset($attributes[$attributeId]);
         }
     }
     $this->attributes = $attributes;
 }
 protected function _deprovisionUsers(array $users)
 {
     foreach ($users as $userId => $userInstance) {
         // Delete users' memberships
         $this->_removeUserFromGroups($userId);
         // Delete user (including consent, oauth, etc
         $user = new EngineBlock_User(array('nameid' => array(0 => $userId)));
         $user->delete();
     }
 }