2026-03-05 08:26:51 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\Repository\Tenant;
|
|
|
|
|
|
2026-03-13 21:58:51 +01:00
|
|
|
/** Contract for storing and retrieving Microsoft Entra ID SSO configuration per tenant. */
|
2026-03-05 08:26:51 +01:00
|
|
|
interface TenantMicrosoftAuthRepositoryInterface
|
|
|
|
|
{
|
|
|
|
|
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-05 08:26:51 +01:00
|
|
|
}
|