Hello Istvan,

Did you implement handshake authentication in your Rust server? I ran a test 
with the Java JDBC driver against a server that supports handshake 
authentication. The username and password were sent over during handshake and a 
token was sent back. The token was subsequently added to requests as a bearer 
token in the "Authorization" header.

https://arrow.apache.org/docs/format/Flight.html#authentication

Hi All,

I am trying to write a basic example of a Java/JDBC code querying from the 
Arrow Rust example implementation of the Arrow Flight SQL server 
(https://github.com/apache/arrow-rs/blob/master/arrow-flight/examples/flight_sql_server.rs
[https://opengraph.githubassets.com/27996a190d209094cf581cc23048525ef4f57fcb3919f6416e275ef11a4af29f/apache/arrow-rs]<https://github.com/apache/arrow-rs/blob/master/arrow-flight/examples/flight_sql_server.rs>
arrow-rs/arrow-flight/examples/flight_sql_server.rs at master ยท 
apache/arrow-rs<https://github.com/apache/arrow-rs/blob/master/arrow-flight/examples/flight_sql_server.rs>
Official Rust implementation of Apache Arrow. Contribute to apache/arrow-rs 
development by creating an account on GitHub.
github.com
). My impression was that based on the interoperability goals of the Arrow 
project, these should work together just fine.

It turns out the in my Java code, I can authenticate (getConnection()) fine 
against the Rust server. User/password goes in, and a token comes back, but 
subsequent calls (executeQuery() for example) don't include the authorization 
token at all (it should look like authorization=Bearer <token>), whereas I 
expected the token to just propagate to subsequent calls as it should.

I am using the 15.0.2 flight-sql-jdbc-driver. Any ideas what my issue could be? 
Is there any extra setup that we need to do to get JDBC + Basic auth to work 
besides supplying user and password parameters?

Thanks,
Istvan Fodor
Attendee panel closed


Reply via email to