Thanks.. I am using Java. In my client I use jdbc to connect to arrow flight:
Java.sql.Connection conn = 
Java.sql.DriverManager.getConnection(jdbcConnectionStr)

Is there a way to get the auth response from conn object?

From: Felipe Oliveira Carvalho <felipe...@gmail.com>
Date: Monday, September 16, 2024 at 4:10 PM
To: dev@arrow.apache.org <dev@arrow.apache.org>
Subject: [EXTERNAL] Re: How to return auth token back to client?
[You don't often get email from felipe...@gmail.com. Learn why this is 
important at https://aka.ms/LearnAboutSenderIdentification ]

[CAUTION: External Email]


In what language are you implementing your Flight service?

For C++ you implement a flight::ServerMiddlewareFactory. That allows you to
populate response headers with the returned JWT token [1]

--
Felipe

[1]
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fvoltrondata%2Fsqlflite%2Fblob%2Ff8c72976ea9eef7c7de264b7f93da3ae1fa2bcd7%2Fsrc%2Flibrary%2Fsqlflite_security.cpp%23L132&data=05%7C02%7CChuan.Zhao%40teradata.com%7C6bf8facac5d74c39455008dcd6a4c64d%7C9151cbaafc6b4f4889bb8c4a71982138%7C0%7C0%7C638621250405027690%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=KlacmVlvCNbeJGP0rfywyYFFBiX9yD%2FmKQaBxbGZgMw%3D&reserved=0<https://github.com/voltrondata/sqlflite/blob/f8c72976ea9eef7c7de264b7f93da3ae1fa2bcd7/src/library/sqlflite_security.cpp#L132>

On Mon, Sep 16, 2024 at 6:20 PM Zhao, Chuan <chuan.z...@teradata.com.invalid>
wrote:

> I am implementing JWT authentication with Arrow flight. After the client
> sends user and password to Arrow flight server, the server with verify the
> credentials and send a jwt token back to the client. Can someone please
> tell me how the server sends the token to client? On the server side I can
> append the token in outgoingHeaders, but I don’t know how to send it to
> client. Thanks.
>
> -Chuan
>
>

Reply via email to