MCPcopy Create free account
hub / github.com/apache/arrow / is_valid

Method is_valid

python/pyarrow/tests/test_flight.py:552–557  ·  view source on GitHub ↗
(self, token)

Source from the content-addressed store, hash-verified

550 outgoing.write(tobytes(auth.username))
551
552 def is_valid(self, token):
553 if not token:
554 raise flight.FlightUnauthenticatedError("token not provided")
555 if token not in self.creds:
556 raise flight.FlightUnauthenticatedError("unknown user")
557 return token
558
559
560class HttpBasicClientAuthHandler(ClientAuthHandler):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected