diff --git a/src/Service/Connector/GandiProvider.php b/src/Service/Connector/GandiProvider.php index 997e908..d6144c5 100644 --- a/src/Service/Connector/GandiProvider.php +++ b/src/Service/Connector/GandiProvider.php @@ -94,27 +94,6 @@ class GandiProvider extends AbstractProvider } } - public function verifySpecificAuthData(array $authData): array - { - $token = $authData['token']; - - if (!is_string($token) || empty($token) - || (array_key_exists('sharingId', $authData) && !is_string($authData['sharingId'])) - ) { - throw new BadRequestHttpException('Bad authData schema'); - } - - $authDataReturned = [ - 'token' => $token, - ]; - - if (array_key_exists('sharingId', $authData)) { - $authDataReturned['sharingId'] = $authData['sharingId']; - } - - return $authDataReturned; - } - /** * @throws TransportExceptionInterface */ diff --git a/src/Service/Connector/NamecheapProvider.php b/src/Service/Connector/NamecheapProvider.php index ed01223..4b542dd 100644 --- a/src/Service/Connector/NamecheapProvider.php +++ b/src/Service/Connector/NamecheapProvider.php @@ -107,20 +107,6 @@ class NamecheapProvider extends AbstractProvider return $data->CommandResponse; } - public function verifySpecificAuthData(array $authData): array - { - foreach (['ApiUser', 'ApiKey'] as $key) { - if (empty($authData[$key]) || !is_string($authData[$key])) { - throw new BadRequestHttpException("Bad authData schema: missing or invalid '$key'"); - } - } - - return [ - 'ApiUser' => $authData['ApiUser'], - 'ApiKey' => $authData['ApiKey'], - ]; - } - /** * @throws TransportExceptionInterface * @throws ServerExceptionInterface