def authenticate(self, outgoing: flight.ClientAuthSender,
                  incoming: flight.ClientAuthReader) -> None:
     """Authenticate with Dremio user credentials.
     """
     basic_auth = flight.BasicAuth(self.username, self.password)
     outgoing.write(basic_auth.serialize())
     self.token = incoming.read()
Exemplo n.º 2
0
 def __init__(self, username, password):
     super().__init__()
     self.basic_auth = flight.BasicAuth(username, password)
     self.token = None
Exemplo n.º 3
0
 def __init__(self, api_key):
     super().__init__()
     self.basic_auth = fl.BasicAuth(*api_key)
     self.token = None
Exemplo n.º 4
0
 def __init__(self, username, password):
     super(HttpBasicClientAuthHandler, self).__init__()
     self.basic_auth = flight.BasicAuth(username, password)
     self.token = None