From a7b09833c6b69d160f9fce0e4a36ae5ebf04db87 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 26 Sep 2024 13:38:15 +0200 Subject: [PATCH] feat: clean authentication data --- src/Service/Connector/NamecheapConnector.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Service/Connector/NamecheapConnector.php b/src/Service/Connector/NamecheapConnector.php index 3b3f082..5631c37 100644 --- a/src/Service/Connector/NamecheapConnector.php +++ b/src/Service/Connector/NamecheapConnector.php @@ -83,7 +83,16 @@ class NamecheapConnector extends AbstractProvider public static function verifyAuthData(array $authData, HttpClientInterface $client): array { - return $authData; + // TODO call gettldlist to introspect authentication + // need to make verifyAuthData local to do this properly... + + return [ + 'ApiUser' => $authData['ApiUser'], + 'ApiKey' => $authData['ApiKey'], + 'acceptConditions' => $authData['acceptConditions'], + 'ownerLegalAge' => $authData['ownerLegalAge'], + 'waiveRetractionPeriod' => $authData['waiveRetractionPeriod'], + ]; } protected function getCachedTldList(): CacheItemInterface