Risselin Corentin created ARROW-15772:
-----------------------------------------
Summary: [Go][Flight] Server Basic Auth Middleware/Interceptor
wrongly base64 decode
Key: ARROW-15772
URL: https://issues.apache.org/jira/browse/ARROW-15772
Project: Apache Arrow
Issue Type: Bug
Components: Go
Affects Versions: 7.0.0, 6.0.1
Reporter: Risselin Corentin
Currently the implementation of the Auth interceptors uses
`base64.RawStdEncoding.DecodeString` to decode the content of the hanshake.
In Go RawStdEncoding will not uses padding (with '='), trying to authenticate
from pyarrow (with `client.authenticate_basic_token(user, password)`) will
result in an error like:
{quote}{{pyarrow._flight.FlightUnauthenticatedError: gRPC returned
unauthenticated error, with message: invalid basic auth encoding: illegal
base64 data at input byte XX}}
{quote}
StdEncoding would successfully read the content if RawStdEncoding fails.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)