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()
示例#2
0
 def __init__(self, username, password):
     super().__init__()
     self.basic_auth = flight.BasicAuth(username, password)
     self.token = None
示例#3
0
 def __init__(self, api_key):
     super().__init__()
     self.basic_auth = fl.BasicAuth(*api_key)
     self.token = None
示例#4
0
 def __init__(self, username, password):
     super(HttpBasicClientAuthHandler, self).__init__()
     self.basic_auth = flight.BasicAuth(username, password)
     self.token = None