code: public function onPostAuthentication()
      {
          $filter = $this->entityManager->getFilters()->enable('tenant');
          $tenant = $this->tenantService->getContext();
          $filter->setParameter('tenant', (string) $tenant);
      }
docs: Determine the contextual tenant