2026-03-25 07:26:04 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\Repository\Tenant;
|
|
|
|
|
|
|
|
|
|
/** Contract for storing and retrieving LDAP authentication configuration per tenant. */
|
|
|
|
|
interface TenantLdapAuthRepositoryInterface
|
|
|
|
|
{
|
|
|
|
|
public function findByTenantId(int $tenantId): ?array;
|
|
|
|
|
|
|
|
|
|
public function listByTenantIds(array $tenantIds): array;
|
|
|
|
|
|
|
|
|
|
public function upsertByTenantId(int $tenantId, array $data): bool;
|
2026-04-07 14:35:57 +02:00
|
|
|
|
|
|
|
|
/** @return list<array{tenant_id: int, allowed_domains: string}> Enabled configs with explicit domain match */
|
|
|
|
|
public function findEnabledWithExplicitDomain(string $domain): array;
|
2026-03-25 07:26:04 +01:00
|
|
|
}
|