code: def _authenticate(self):
          
          if not self._get_provider_option(
                  'auth_username') or not self._get_provider_option('auth_password'):
              raise Exception(
                  'No valid authentication data passed, expected: auth-username and auth-password')
          response = self._request_login(self._get_provider_option('auth_username'),
                                         self._get_provider_option('auth_password'))
          if 'ssid' in response:
              self.ssid = response['ssid']
              domains = self.domains_list()
              if any((domain['name'] == self.domain for domain in domains)):
                  self.domain_id = self.domain
              else:
                  raise Exception("Unknown domain {}".format(self.domain))
          else:
              raise Exception("No SSID provided by server")
docs: Logs-in the user and checks the domain name