1
0
Files
breadcrumb-the-shire/lib/Service/Auth/AuthExternalIdentityGateway.php
2026-03-05 08:26:51 +01:00

28 lines
865 B
PHP

<?php
namespace MintyPHP\Service\Auth;
use MintyPHP\Repository\User\UserExternalIdentityRepositoryInterface;
class AuthExternalIdentityGateway
{
public function __construct(private readonly UserExternalIdentityRepositoryInterface $userExternalIdentityRepository)
{
}
public function findByProviderTidOid(string $provider, string $tid, string $oid): ?array
{
return $this->userExternalIdentityRepository->findByProviderTidOid($provider, $tid, $oid);
}
public function findByProviderIssuerSubject(string $provider, string $issuer, string $subject): ?array
{
return $this->userExternalIdentityRepository->findByProviderIssuerSubject($provider, $issuer, $subject);
}
public function createLink(array $data): bool
{
return (bool) $this->userExternalIdentityRepository->createLink($data);
}
}