scruz-denodo commented on PR #43155:
URL: https://github.com/apache/arrow/pull/43155#issuecomment-2214095148
> Does this strictly need to be built into Flight? Since you can always use
the gRPC APIs directly
If I am not wrong, using gRPC APIs is a partial solution. Correct me if I am
saying something incorrect.
You can create a `io.grpc.ServerInterceptor` and attach it to the Flight-SQL
server.
Something like:
```
final MyServerInterceptor myServerInterceptor = new MyServerInterceptor();
final Consumer<NettyServerBuilder> consumer = (builder) -> {
builder.intercept(connectionDataServerInterceptor);
};
flightServerBuilder.transportHint("grpc.builderConsumer", consumer);
```
The previous interceptor is executed when a client invokes any method. But
it is called **after** the authentication process is done with
`org.apache.arrow.flight.auth2.CallHeaderAuthenticator`.
So, you are no able to use the client information for deciding about the
authentication.
--
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]