[ 
https://issues.apache.org/jira/browse/ARROW-15772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthew Topol resolved ARROW-15772.
-----------------------------------
    Fix Version/s: 8.0.0
       Resolution: Fixed

Issue resolved by pull request 12503
[https://github.com/apache/arrow/pull/12503]

> [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: 6.0.1, 7.0.0
>            Reporter: Risselin Corentin
>            Priority: Major
>              Labels: easyfix, pull-request-available
>             Fix For: 8.0.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to