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