xinyiZzz opened a new issue, #1079:
URL: https://github.com/apache/arrow-adbc/issues/1079

   I use Python adbc_driver_flightsql to connect to Flight SQL Server 
implemented in Java, my Arrow Flight SQL Server implements Auth2 
`CallHeaderAuthenticator`, and the `AuthResult` returned by `authenticate` 
contains the Bearer Token.
   ```
   db = adbc_driver_flightsql.connect(uri="grpc://xxx:xx", db_kwargs={
               adbc_driver_manager.DatabaseOptions.USERNAME.value: "root",
               adbc_driver_manager.DatabaseOptions.PASSWORD.value: "",
           })
   conn = adbc_driver_manager.AdbcConnection(db)
   ```
   
   It looks like the Bearer Token is in the outgoing call headers and I want to 
get the Bearer Token from Python `adbc_driver_manager.AdbcConnection` and use 
it afterwards, like this:
   
   ```
   db = adbc_driver_flightsql.connect(uri="grpc://xxx:xxx", db_kwargs={
               
adbc_driver_flightsql.DatabaseOptions.AUTHORIZATION_HEADER.value: "Bearer 
<token>",
           })
   conn = adbc_driver_manager.AdbcConnection(db)
   ```
   
   I need help, thanks~


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to