Files
breadcrumb-the-shire/lib/Repository/Tenant/TenantMicrosoftAuthRepositoryInterface.php

17 lines
576 B
PHP
Raw Normal View History

2026-03-05 08:26:51 +01:00
<?php
namespace MintyPHP\Repository\Tenant;
/** 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;
/** @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
}