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

Method is_valid

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

Source from the content-addressed store, hash-verified

591 "invalid username/password")
592
593 def is_valid(self, token):
594 token = base64.b64decode(token)
595 if not token.startswith(b'secret:'):
596 raise flight.FlightUnauthenticatedError("invalid token")
597 return token[7:]
598
599
600class TokenClientAuthHandler(ClientAuthHandler):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected