def METHOD_NAME(self):
    self.session.auth = HTTPBasicAuth(
        username=self._get_provider_option("auth_username"),
        password=self._get_provider_option("auth_token"),
    )
    # checking domain existence
    domain_name = self.domain
    for domain in NamecomLoader(self._get, "/domains", "domains"):
        if domain["domainName"] == domain_name:
            self.domain_id = domain_name
            return
    raise AuthenticationError("{} domain does not exist".format(domain_name))