chore: make verifyAuthData private

This commit is contained in:
Maël Gangloff
2025-02-27 09:01:05 +01:00
parent 7a49adcc18
commit 3cae5d717e
4 changed files with 11 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ abstract class AbstractProvider
* @throws HttpException when the user does not accept the necessary conditions
* @throws ExceptionInterface
*/
public function verifyAuthData(array $authData): array
private function verifyAuthData(array $authData): array
{
/** @var DefaultProviderDto $data */
$data = $this->serializer->denormalize($this->verifyLegalAuthData($authData), $this->dtoClass);
@@ -136,10 +136,12 @@ abstract class AbstractProvider
* @throws ExceptionInterface
* @throws \Exception
*/
public function authenticate(array $authData): void
public function authenticate(array $authData): array
{
$this->authData = $this->verifyAuthData($authData);
$this->assertAuthentication();
return $this->authData;
}
abstract protected function getCachedTldList(): CacheItemInterface;