docs: def _get_web_auth_token(self):
          """
          Retrieves a token from the network for web authentication.
          The token then has to be authorized from getAuthURL before creating
          session.
          """
  
          request = _Request(self.network, "auth.getToken")
  
          # default action is that a request is signed only when
          # a session key is provided.
          request.sign_it()
  
          doc = request.execute()
  
          e = doc.getElementsByTagName("token")[0]
          return e.firstChild.data