internetee / registry

TLD Management Software
Other
45 stars 19 forks source link

2611 bsa gateway integration #2621

Open OlegPhenomenon opened 8 months ago

OlegPhenomenon commented 8 months ago

close #2611

What is this? This is the implementation for interacting with BSA reserved domains, which can be obtained from GoDaddy.

What do you need to know beforehand?

Implementation Description

GoDaddy Service Token Management:

The GoDaddy service operates in such a way that the token refreshes every 20 minutes and also has a limit on the number of requests within a specific time frame. Therefore, the generated token is stored in a Redis cache, and it is used for each request. There is also a check for the token's expiration time; if the 20-minute period has expired, a request is made to GoDaddy to obtain a new token.

Two jobs were implemented:

UpdateGodaddyDomainsStatusJob.perform_now(
  BsaProtectedDomain.states['QueuedForActivation'],
  BsaProtectedDomain.states['ActivationInProgress']
)

.. will be continued :)

viezly[bot] commented 8 months ago

This pull request is split into 14 parts for easier review. 👀 Review pull request on Viezly

Changed files are located in these folders: